Backend: Python, Django, DRF
Infra: Docker-compose
Database: PostgreSQL
Others: Redis, RabbitMQ, Prometheus, NGINX
Clone the project
git clone https://github.com/karthiknarayan07/ecommerce-microservices.git
Go to the project directory
cd ecommerce-microservices
Go to databases folder
cd databases
build docker images
docker compose build
Start all databases
docker compose up
Go to parent folder to build services
cd ..
build docker images
docker compose build
Start all services
docker compose up
To run this project, you will need to add the following environment variables to your .env file
NGINX_PORT
PROMETHEUS_PORT
RABBITMQ_PORT
RABBITMQ_MANAGEMENT_PORT
REDIS_PORT
REDIS_PASSWORD
USERSERVICE_CONTAINER_PORT_1
USERSERVICE_CONTAINER_PORT_2
PRODUCTSERVICE_CONTAINER_PORT_1
PRODUCTSERVICE_CONTAINER_PORT_2
ORDERSERVICE_CONTAINER_PORT_1
ORDERSERVICE_CONTAINER_PORT_2
COMMUNICATIONSERVICE_CONTAINER_PORT_1
COMMUNICATIONSERVICE_CONTAINER_PORT_2