/--- 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 |
\------------------------------------------------/
- Auth Service
cd src/auth-service && npm start
- Product Service
cd src/product-service && npm start
- Order Service
cd src/order-service && npm start
- Download SQL Server
docker pull mcr.microsoft.com/mssql/server:2019-latest
- 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
- 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
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