[![MIT License][license-shield]][license-url]
Table of Contents
This a playground project for async web architecture. Where services might be divided into multiple microservices general principles are simple.
Request -> Endpoint Handles the request and returns a promise -> At this point response is generated and send to user -> generated promise is actually a task id thats queued into rabbitmq for complex calculations -> after complex calculations handled asynchronously the result is saved to rabbitmq -> given any time user can query and ask for promise status
- Clone the repo
git clone https://github.com/your_username_/Project-Name.git cd Project-Name
- Run to get it started.
docker-compose build docker-compose up -d
- Prepare db migrations
docker-compose exec web flask db init docker-compose exec web flask db upgrade
- populate db with some data
docker-compose exec web python seed.py
- now you should be able to test
for shell access use:
docker-compose exec web flask shell
after model changes use:
docker-compose exec web flask db migrate -m "migration commit message"
docker-compose exec web python -m unittest
Distributed under the MIT License. See LICENSE.txt
for more information.