docker-flask-mongodb-uwsgi-nginx - is a Flask project with a whole Docker stack on a set of components listed below.
- To extract data from provided Excel files.
- To start an API web-service on port 8080 (use flask) that will return the stored data.
-
Create
mongodb_root_password
file in ./docker/shared/secrets/.E.g.:
$ echo "S3cR3TPassword" >> docker/shared/secrets/mongodb_root_password
-
docker-compose up
-
Done! You can access: http://127.0.0.1:8080/data?week_start=2016-08-10&week_end=2017-08-20
Note:
- Put new *.xlsx files under
./parser/xlsx
folder - Configure .env if needed
Do not hesitate to improve this repository, creating your PR on GitHub with a description which explains it.
Ask your question on [email protected]
.