All Projects → opendata-stuttgart → metaEFA

opendata-stuttgart / metaEFA

Licence: other
an easy to use api wrapper for EFA

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Dockerfile
14818 projects
shell
77523 projects

meta_efa Build Status

Hosted version

The hosted version is not available anymore.

usage examples

Installation/Development

The easiest way to run the django app is to install Docker and Docker Compose (Instructions)

It is advisable to create an alias for docker-compose:

alias dc=docker-compose

To build the containers run dc build if you do this the first time it will take some time.

Then initialize the database:

dc run web reset_db
dc run web migrate

To run the app (-d for daemonizing => background):

dc up [-d]

To get a python shell with DB access:

dc run web shell_plus

To populate DB, get a python shell with DB access (see above), then:

from main.utils import populate_stations
populate_stations()

After changing something in a model you will need to create migrations:

dc run web makemigrations
dc run web migrate
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].