This project demonstrates some best practices building microservices in .NET 8 using DDD
and Vertical Slice
architecture.
Visual Studio has built-in integration with Docker. However, it has some internal configurations to make it work.
To run docker build
without Visual Studio support:
- Run
docker build
from/src
folder, where the.sln
file is saved - Use
-f
option to specify where the Dockerfile is located
For example, to build the Catalog API:
- Current working directory is
/src
- Run
docker build -t catalog-api -f Service/Catalog/Catalog.API/Dockerfile .
Postman test routes are set up in EShopMicroservices.postman_collection.json
Import this into Postman and modify ports as necessary.