An open API service indexing awesome lists of open source software.

https://github.com/tahmid-tanzim/microservices

Python microservices communication using RabbitMQ
https://github.com/tahmid-tanzim/microservices

django docker flask mysql python3 rabbitmq

Last synced: 10 months ago
JSON representation

Python microservices communication using RabbitMQ

Awesome Lists containing this project

README

          

# Microservices

### Create a virtual environment to isolate our package dependencies locally
```shell
python3 -m venv env
source env/bin/activate # On Windows use `env\Scripts\activate`
```

### Install Django and Django REST framework into the virtual environment
```shell
pip install django
pip install djangorestframework
pip install django-cors-headers
pip install psycopg2-binary
pip install pika
```

### Django Migrations
```shell
docker-compose exec backend bash
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata default_users
```

### Flask Migrations
```shell
docker-compose exec backend bash
python manager.py db init
python manager.py db migrate
python manager.py db upgrade
```