Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

opendata-stuttgart/metaEFA

Repository files navigation

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

About

an easy to use api wrapper for EFA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published