Including 3 services : Customer, Product and Order.
- MediatR.
- MassTransit.
- RabbbitMq.Client.
- AutoMapper.
Use following command for building and running docker containers.
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
(Be sure Docker deamon is up before running command)
This will create and run 4 docker containers one for each service and one for the rabbit mq. After running images you can check services on following links.
-Product Service: http://localhost:8086/swagger/index.html
-Customer Service: http://localhost:8085/swagger/index.html
-Order Service : http://localhost:8087/swagger/index.html
-Rabbit Console: http://localhost:15672/
Use following command for build application locally:
dotnet restore online-shop.sln
dotnet build online-shop.sln
Use following command for running unit test:
dotnet test online-shop.sln
Use following command formatting code after editing:
dotnet format ./online-shop.sln
Class diagram of Customer Service
Class diagram of Order Service