A .NET 8 Webapi boilerplate with Modular Monolith approach, Domain-Driven Design and Vertical Slices architecture along with Clean Architecture principles per feature.
- Clone the repository:
git@github.com:baranacikgoz/modular-monolith-ddd-vsa-webapi.git
- Use appropriate
tasks.json
depending on your OS- Copy
tasks.windows.json
ortasks.unix.json
, into a new file with the nametasks.json
.
- Copy
- Make before and after restore & build scripts executable
chmod +x .vscode/exclude_docker_compose_dcproj.sh
chmod +x .vscode/dotnet_build_and_cleanup.sh
chmod +x .vscode/revert_exclude.sh
- Run required services
- If you have VSCode Docker extension installed, right click on
docker-compose.yml
and selectCompose Up - Select Services
. Select the following services:mm.database
mm.rabbitmq
mm.seq
- Optional but recommended
- Or run the following command in terminal:
docker compose -f "docker-compose.yml" up -d --build mm.database mm.rabbitmq mm.seq
- If you have VSCode Docker extension installed, right click on
- Run the application
- Press
F5
to start the application in debug mode
- Press
-
Open the solution file
ModularMonolith.sln
in Visual Studio -
Set
Docker Compose
as the startup project- Right click on the
Docker Compose
project and selectSet as Startup Project
if it's not already set
- Right click on the
-
Start application