Skip to content

E-Commerce Microservice with NodeJS and RabbitMQ | NodeJS Microservice | Microservice Architecture

Notifications You must be signed in to change notification settings

WebDevN-F/e-commerce-msrv-node-amqr-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce microservice with nodejs and rabbitMQ

    /--- 1. Auth Servive ----------------------------\
    |           - Register User                      |_______________
    |           - Login User                         |               |
    \------------------------------------------------/               | 
    /--- 2. Product Service -------------------------\               |
    |            - Create Products                   |      _________|_________         _____________
    |            - Buy Products                      |_____|                   |_______|             |_PRODUCT_QUERE
    \------------------------------------------------/     | isAuthenticated() |_______|  Rabbit MQ  |_ORDER_QUERE
    /--- 3. Order Service ---------------------------\_____|___________________|       |_____________|
    |            - List Orders                     |     
    \------------------------------------------------/

Try Script

  1. Auth Service cd src/auth-service && npm start
  2. Product Service cd src/product-service && npm start
  3. Order Service cd src/order-service && npm start

VIDEO tutorial

YOUTUBE

SETUP MSSQL in your docker

  1. Download SQL Server

docker pull mcr.microsoft.com/mssql/server:2019-latest

  1. Launch Docker Image

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=123456aA" -p 1433:1433 --name sql_server_demo -h sql_server_demo -d mcr.microsoft.com/mssql/server:2019-latest

  1. Copying the file to your docker & your docker to the location files

docker cp <location_of_file> <container_id>:/var/opt/mssql/data

copy file from docker to location file

docker cp 3fb58c0310a5:/var/opt/mssql/data/model-202211-16-27-29.bak E:\learns\model-202211-16-27-29.bak

Setup RabbitMQ

docker run --name rabbitmqdemo -p 5672:5672 -d rabbitmq:3

pull

docker pull rabbitmq:3-management

docker run --hostname localhost --name rabbit-server -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin2022 -p 5672:5672 -p 15672:15672 -d rabbitmq:3-management

Setup Mongodb

Setup swagger doc

About

E-Commerce Microservice with NodeJS and RabbitMQ | NodeJS Microservice | Microservice Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published