To edit this Project, we recommend usage of virutalenv.
Install dependencies using pip install -r requirements.txt, then run the development server with the following commands:
export FLASK_APP=api.py
flask run
The API should be live at http://localhost:5000
Don't run the API on production using the development server.
We recommend the usage of gunicorn to run the API on production.
Just launch the server using gunicorn wsgi:app. If you want to run the API using several workers, just use the -w argument.
You can configure this API using environment variables, you will find the different variables below:
| Variable Name | Default value | Description |
|---|---|---|
| DATA_PATH | ../fiyeli/data/ | Folder containing CSV files generated by the Core |