A microservices application using RabbitMQ as our message broker Application based on NestJS, where MongoDB a database. All this is packed in Docker-Compose, in Docker we use bitnami/mongodb. All the most interesting is in the documentation. 📗
NestJS |
MongoDB |
RabbitMQ |
Docker |
- Authentication and Authorization
- Registration, create user
- Login
- Orders
- Create a orders with fields product name price and phone number
- Update order
- Delete order
Check Orders API Documentation for more info.
Rename .env file, and set your variables for example:
MONGODB_URI=mongodb://root:password123@mongodb-primary:27017/
PORT=3000
RABBIT_MQ_URI=amqp://rabbitmq:5672
RABBIT_MQ_BILLING_QUEUE=billing
JWT_EXPIRATION=3600
JWT_SECRET=you-super-secret😏
RABBIT_MQ_AUTH_QUEUE=auth
Follow the command:
docker-compose up
# -d - For launch in the background
# --build - for build containers