opendata-stuttgart/metaEFA

Name: metaEFA

Owner: Open Data Stuttgart

Description: an easy to use api wrapper for EFA

Created: 2015-05-16 10:24:56.0

Updated: 2018-05-09 16:22:38.0

Pushed: 2018-05-09 16:22:36.0

Homepage: null

Size: 388

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

meta_efa Build Status

Hosted version

Web Click UI: http://efa.asw.io (Source: https://github.com/momorientes/metaEFA-UI) - only works in Chrome
Hosted API version: https://efa-api.asw.io

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:

s 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:

un web reset_db
un web migrate

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

p [-d]

To get a python shell with DB access:

un web shell_plus

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

 main.utils import populate_stations
late_stations()

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

un web makemigrations
un web migrate

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.