Skip to content

nk-intst/metaEFA

 
 

Repository files navigation

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:

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

Languages

  • Python 89.9%
  • HTML 9.7%
  • Other 0.4%