opendata-stuttgart / metaEFA

an easy to use api wrapper for EFA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:Python 86.3%Language:HTML 8.8%Language:Dockerfile 2.9%Language:Shell 1.6%Language:JavaScript 0.2%Language:CSS 0.2%