metaEFA icon indicating copy to clipboard operation
metaEFA copied to clipboard

an easy to use api wrapper for EFA

meta_efa Build Status

Hosted version

The hosted version is not available anymore.

usage examples

  • https://github.com/shackspace/kiosk_v4/blob/master/vvs.js#L3
  • https://stationmonitor.lugbb.org/ (GitHub repository)
  • (add yours here)

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