Prerequisites
Before you begin, ensure you have the following installed:.NET 9 SDK
Download from dotnet.microsoft.com
Docker Desktop
Required for PostgreSQL and MongoDB containers. Download from docker.com
Visual Studio 2022
Version 17.12+ or JetBrains Rider (optional but recommended)
Git
For cloning the repository
Installation
Configure Environment Variables
Create a
.env file in the Wolfix.AppHost directory with the required configuration:.env
For development, you can use the PostgreSQL credentials that .NET Aspire will provision automatically. Update other keys as needed for the features you want to test.
Set Startup Project
Set Wolfix.AppHost as the startup project:
- In Visual Studio: Right-click
Wolfix.AppHost→ Set as Startup Project - In Rider: Edit Run Configuration → Select
Wolfix.AppHost
Run the Application
Press F5 or click the Run button..NET Aspire will:
- Start the Aspire Dashboard at
http://localhost:17170 - Launch MongoDB container automatically
- Launch the Toxicity API container
- Start the Wolfix.API application
- Apply database migrations
Verify Installation
- Using Swagger
- Using cURL
- Check Aspire Dashboard
- Navigate to
https://localhost:5001/swagger - Expand the Identity section
- Try the
POST /api/account/customer/registerendpoint - Click Try it out and provide a sample request:
- Click Execute - you should receive a 200 OK response with a JWT token
Running Without Visual Studio
You can also run the application using the .NET CLI:Common Issues
Docker not running
Docker not running
Error: “Docker is not running”Solution: Ensure Docker Desktop is running before starting the application.
Port already in use
Port already in use
Error: “Port 5001 is already in use”Solution: Stop any other applications using ports 5001, 5000, or 17170.
Database migration errors
Database migration errors
Error: “Cannot connect to database”Solution: Ensure PostgreSQL container is running via Aspire. Check the Aspire dashboard for container status.
Missing environment variables
Missing environment variables
Error: “Configuration value for ‘TOKEN_KEY’ not found”Solution: Ensure your
.env file exists in the Wolfix.AppHost directory with all required variables.Next Steps
Architecture Overview
Understand the modular monolith design
Core Concepts
Learn about Clean Architecture and DDD
API Reference
Explore all available endpoints
Development Guide
Start building new features