Need help with weg-li?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

176 Stars 21 Forks 2.1K Commits 41 Opened issues


📸 📝 ✊ 1, 2, 3 - Macht die Bahn frei!

Services available


Need anything else?

Contributors list

Build Status Financial Contributors on Open Collective

📸 📝 ✊ 1, 2, 3 - Macht die Bahn frei! 1, 2, 3 - Macht die Bahn frei!


You can either run the application locally or via Docker.

Local setup

To run locally, you'll need:

  • Ruby
  • PostgreSQL with postgis
  • 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 yarn # yarn

brew install postgresql # database brew install postgis # GIS extension for Postgresql createuser -s postgres # create general purpose postgres user

brew install imagemagick # image-processing

project setup


# install ruby runtime
rbenv install

run this to start the rails process


Docker setup

docker-compose up


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
) and import it into your local database. Example using the rails console (
rails c
> districts = JSON.parse('').read); districts.count
=> 3377
> District.insert_all!({ |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




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

In addition, 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:


For local use, you can put these variables into a

file in the project directory, and the
gem will automatically make them available to your rails app. (See


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]



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


"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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.