Skip to content

erfanAliaghdam/django-simple-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Simple Microservice

Screenshot 1403-02-14 at 20 38 58

How to Run Each Service?

Step 1: Navigate to the Service Directory

cd <service_name>

Replace <service_name> with the name of the service you want to run.

Step 2: Build and Run Docker Containers

docker-compose up --build -d

This command will build the Docker images if they don't exist and start the containers in detached mode.

Step 3: RabbitMQ Configuration

Before running each service, you need to initialize the RabbitMQ URL inside the respective service's environment file.

User Service

Navigate to userService/rabbitmq/local/ directory and create or edit the .env.local file.

Logger Service

Navigate to loggerService/rabbitmq/local/ directory and create or edit the .env.local file.

Mail Service

Navigate to mailService/rabbitmq/local/ directory and create or edit the .env.local file.

Example RabbitMQ URL Initialization

Inside each .env.local file, add the RabbitMQ URL in the following format:

RABBITMQ_Q=amqp://...

Testing REST API Endpoints

You can use the .HTTP files inside the requests folder inside userService to test the REST API endpoints.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published