- Start docker: docker-compose up --build
- Stop docker: docker-compose down
- Flask with Swagger
- SqlAlchemy
- RabbitMQ
- Celery
- Swagger UI : https://localhost:5000/api/
- RabbitMQ: http://localhost:15672/
- User: guest
- Password: guest
- Mysql:
- User: root
- Password: root
- Add a py-file like endpoints/movies.py for the new category. In this file create a new namespace.
- Add the new namespace to the api in app.py - initialize_app(flask_app)
- Create a new Model in the file helpers/serializers.py which you can use in the file created in Step 1.
- Create a new CeleryTaskClass in tasks/tasks.py to make a request to the server. There you should define a new queue.
- e.g. queue = "games"
- In the file docker-compose.yml add the new queue to the celery command.
- e.g. celery -A tasks.tasks worker -Q movies, games -B -l INFO