A demo backend service for managing cocktail recipes and inventory to demonstrate the design of Rich Domain Model design and configuration using .NET and EF Core.
- Aggregates
- Value objects
- Strictly typed ids
- Explicit configurations
- Extensive documentation
- .NET 7.0 or later
- Docker and Docker Compose
- PostgreSQL (if running locally)
CocktailBar/
├── src/
│ ├── CocktailBar.Api # REST API endpoints and controllers
│ ├── CocktailBar.Application # Application business logic and use cases
│ ├── CocktailBar.Contracts # DTOs and API contracts
│ ├── CocktailBar.Domain # Domain entities and business rules
│ └── CocktailBar.Infrastructure# Data access and external services
├── docker-compose.yml # Docker composition configuration
└── Dockerfile # Docker container definition
- Clone the repository:
git clone https://github.com/yourusername/CocktailBar.git
cd CocktailBar- Build the solution:
dotnet build- Run the application:
Using Docker:
docker-compose up -dOr locally:
cd src/CocktailBar.Api
dotnet watch