All Projects β†’ weg-li β†’ Weg Li

weg-li / Weg Li

πŸ“Έ πŸ“ ✊ weg-li: 1, 2, 3 - Macht die Bahn frei!

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Weg Li

Spree
Open Source headless multi-language/multi-currency/multi-store eCommerce platform
Stars: ✭ 11,571 (+7317.31%)
Mutual labels:  rails
Trado
Trado is a lightweight, easy to use ecommerce platform; designed to allow developers to quickly deploy a premium ecommerce store for their business
Stars: ✭ 149 (-4.49%)
Mutual labels:  rails
Rails new
A thoughtfully designed template for building modern Rails apps. Get started in minutes instead of hours πŸ”₯πŸš€
Stars: ✭ 151 (-3.21%)
Mutual labels:  rails
Stimulus reflex
Build reactive applications with the Rails tooling you already know and love.
Stars: ✭ 1,928 (+1135.9%)
Mutual labels:  rails
Graphql Query Resolver
Minimize N+1 queries generated by GraphQL and ActiveRecord
Stars: ✭ 148 (-5.13%)
Mutual labels:  rails
Coverband
Ruby production code coverage collection and reporting (line of code usage)
Stars: ✭ 1,937 (+1141.67%)
Mutual labels:  rails
Shoryuken
A super efficient Amazon SQS thread based message processor for Ruby
Stars: ✭ 1,837 (+1077.56%)
Mutual labels:  rails
Ordinare
Ordinare sorts gems in your Gemfile alphabetically
Stars: ✭ 153 (-1.92%)
Mutual labels:  rails
Critical Path Css Rails
Only load the CSS you need for the initial viewport in Rails!
Stars: ✭ 149 (-4.49%)
Mutual labels:  rails
Rodauth Rails
Rails integration for Rodauth authentication framework
Stars: ✭ 150 (-3.85%)
Mutual labels:  rails
Pushvendor
Ruby on Rails POS (Point of Sale)
Stars: ✭ 147 (-5.77%)
Mutual labels:  rails
Font awesome5 rails
font_awesome_5_rails is font awesome 5 gem bundled for rails asset pipeline
Stars: ✭ 148 (-5.13%)
Mutual labels:  rails
Rpush
The push notification service for Ruby.
Stars: ✭ 1,886 (+1108.97%)
Mutual labels:  rails
Doorkeeper Provider App
An example OAuth 2 provider application using the Doorkeeper gem, Rails and Devise
Stars: ✭ 146 (-6.41%)
Mutual labels:  rails
Spina
Spina CMS
Stars: ✭ 1,926 (+1134.62%)
Mutual labels:  rails
Kitsu Server
πŸš‚ Rails API server for Kitsu
Stars: ✭ 145 (-7.05%)
Mutual labels:  rails
Rack Policy
Rack middleware for the EU ePrivacy Directive compliance in Ruby Web Apps
Stars: ✭ 149 (-4.49%)
Mutual labels:  rails
Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (-1.28%)
Mutual labels:  rails
Dotfiles
πŸ“ My dotfiles for macOS using Fish/Zsh, Neovim, and Tmux
Stars: ✭ 151 (-3.21%)
Mutual labels:  rails
Drawers
Group related classes together. No more silos. A solution to rails dystopia.
Stars: ✭ 150 (-3.85%)
Mutual labels:  rails

Build Status Financial Contributors on Open Collective

πŸ“Έ πŸ“ ✊ weg.li: 1, 2, 3 - Macht die Bahn frei!

https://www.weg.li/

weg.li: 1, 2, 3 - Macht die Bahn frei!

Installation

You can either run the application locally or via Docker.

Local setup

To run weg.li locally, you'll need:

  • Ruby
  • PostgreSQL
  • NodeJS & Yarn
  • Redis

Quick setup for Linux (Ubuntu)

See this guide which guides you through installing Ruby, Rails and PostgreSQL.

Complete the setup by installing the Redis server at the end.

apt install redis

Quick setup for Mac OS

Please follow this guide if you have not ever installed Ruby on your computer.

# global setup
brew install rbenv # ruby environemnt

brew install postgresql # database
createuser -s postgres # create general purpose postgres user

brew install imagemagick # image-processing

# project setup
bin/setup
# install ruby runtime
rbenv install

# run this to start the rails process
script/server

Docker setup

docker-compose up

Contributing

Create admin user

After installing the dependencies and running the server, you should be able to log in via β€œemail” by visiting http://localhost:3000/sessions/email and following the prompts. No email will be sent - the generated email is opened in your browser.

Once you have successfully authenticated, make your user an admin: Start the rails console (run rails c in your project directory), then enter User.last.update(access: 'admin'), which should result in => true. Now you should be able to access the admin interface at /admin.

Importing base data

For proper functionality, you need to populate your database with districts.

To fabricate random districts, run rake dev:data. This will synthesize all the kinds of data you need to get dashboards, stats, etc. working right.

If you want to get as close as possible to a β€œproduction” system, the easiest way is to import data from the production instance. Download an export format from https://www.weg.li/districts.csv (or .json) and import it into your local database. Example using the rails console (rails c):

> districts = JSON.parse(URI.open('https://www.weg.li/districts.json').read); districts.count
=> 3377
> District.insert_all!(districts.map{ |x| x.except('personal_email').merge({'flags': x['personal_email'] ? 1 : 0}) }); District.count
=> 3377

Secrets and keys

You need to set the following environment variables to enable full functionality for weg.li:

GITHUB_CONSUMER_KEY=github-key
GITHUB_CONSUMER_SECRET=github-secret

TWITTER_CONSUMER_KEY=twitter-key
TWITTER_CONSUMER_SECRET=twitter-secret

GOOGLE_CONSUMER_KEY=google-key
GOOGLE_CONSUMER_SECRET=google-secret

These are used to let users authenticate with the different providers. Learn how to create your own keys: GitHub, Twitter, Google.

In addition, weg.li uses Google Cloud Storage for storing uploaded data and Google Cloud Vision to read license plates and determine car makes and colors. You will need to create a Google Cloud Project and set up the required API access for Google Cloud Storage and Google Cloud Vision. Be aware that you might be billed for Google Cloud usage. Please refer to the Google Cloud documentation, and set the following environment variables accordingly:

GOOGLE_CLOUD_PROJECT=google-cloud-project-id
GOOGLE_CLOUD_KEYFILE=path/to/project/keyfile/gcloud.json

For local use, you can put these variables into a .env file in the project directory, and the dotenv gem will automatically make them available to your rails app. (See .env-example.)

Contributors

Code Contributors

Dieses Projekt existiert dank aller Menschen, die dazu beitragen.

Financial Contributors

Werden Sie ein finanzieller Spender und helfen Sie uns, unsere Gemeinschaft zu erhalten. [Beitragen]

Individuals

Organizations

UnterstΓΌtzen Sie dieses Projekt mit Ihrer Organisation. Ihr Logo wird hier mit einem Link zu Ihrer Website angezeigt.[Beitragen]

License

"THE (extended) BEER-WARE LICENSE" (Revision 42.0815): phoet contributed to this project.

As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me some beers in return.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].