This is a development setup guide for this project. Please follow the instructions to setup project locally.
- Python 3.7
- Poetry (installation guide)
-
Pull the repo
-
Create new poetry environment (virtualenv)
poetry shell
-
Install requirements
poetry install
-
Start RabbitMQ server
rabbitmq-server
-
To run on local
export FLASK_APP=dev_server export FLASK_ENV=development flask run
-
Start Celery worker
celery -A celery_worker worker --loglevel=info --pool=solo
Application will run on 127.0.0.1:5000/api/v1 Swagger ui will run on 127.0.0.1:5000/api/v1/ui
- Run pytest
pytest