AspNetCore-DDD

(β˜… 881)

Full ASP.NET Core 10.0 LTS application with DDD, CQRS and Event Sourcing

  • .dockerignore
  • .editorconfig
  • .gitattributes
  • .gitignore
  • api.http
  • api.md
  • azure-pipelines.yml
  • Containerfile
  • DDD.slnx
  • Directory.Build.props
  • Directory.Packages.props
  • docker-compose.yml
  • Dockerfile
  • global.json
  • LICENSE
  • nuget.config
  • omnisharp.json
  • README.md
  • stylecop.json
  • StyleCop.ruleset

# Installation Guide

1. Get the code
git clone https://github.com/ntxinh/AspNetCore-DDD

Downloads the entire project code from GitHub to your computer.

cd AspNetCore-DDD

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t aspnetcore-docker-image .

Builds a runnable image based on the Dockerfile.

docker run -it --rm -p 3000:80 --name aspnetcore-docker-container aspnetcore-docker-image

Runs the built image as an actual container.

docker run -d -p 3000:80 --name aspnetcore-docker-container aspnetcore-docker-image

Runs the built image as an actual container.

docker compose up -d

Builds and starts all defined containers (server, database, etc.) at once, in the background.

docker compose ps

Runs the command against the services defined in the compose file.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. .NET

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
dotnet build Src/DDD.Services.Api/DDD.Services.Api.csproj

Type this command into your terminal and run it.

dotnet run --project Src/DDD.Services.Api/DDD.Services.Api.csproj --launch-profile Dev

Builds the project and runs it immediately.

dotnet watch --project Src/DDD.Services.Api/DDD.Services.Api.csproj run

Type this command into your terminal and run it.

βœ… After dotnet run, check the message or address shown in the terminal.

Pulled directly from this repo's README.

// repository documentation