Overview
Before running the AspNetRun Microservices application, ensure you have the following tools installed on your development machine. This guide provides installation instructions for Windows, macOS, and Linux.Required Software
All three tools are required to run the application with Docker Compose. For development, you’ll need additional tools listed in the optional section.
.NET 8 SDK
The application is built on .NET 8, which includes the latest features of C# 12 and ASP.NET Core 8.Download .NET 8 SDK
Download the SDK from the official Microsoft website:Windows: Download .NET 8 SDK for Windows
macOS: Download .NET 8 SDK for macOS
Linux: Download .NET 8 SDK for Linux
macOS: Download .NET 8 SDK for macOS
Linux: Download .NET 8 SDK for Linux
Download the SDK, not just the Runtime. The SDK includes everything needed to build and run .NET applications.
Install the SDK
Run the installer and follow the prompts. The installation typically takes 2-3 minutes.For Linux, use your distribution’s package manager:
Docker Desktop
Docker Desktop provides containerization for all microservices and infrastructure components.Download Docker Desktop
Download Docker Desktop for your operating system:Windows: Download Docker Desktop for Windows
macOS: Download Docker Desktop for Mac
Linux: Download Docker Desktop for Linux or use Docker Engine
macOS: Download Docker Desktop for Mac
Linux: Download Docker Desktop for Linux or use Docker Engine
Windows users must enable WSL 2 (Windows Subsystem for Linux) before installing Docker Desktop. The installer will guide you through this process.
Install Docker Desktop
Run the installer and follow the installation wizard:Log out and back in for group changes to take effect.
- Accept the license agreement
- Choose installation options (use WSL 2 on Windows)
- Complete the installation
- Restart your computer if prompted
Configure Docker Desktop
After installation, configure Docker Desktop for optimal performance:
- Open Docker Desktop
- Go to Settings → Resources
- Allocate sufficient resources:
- Memory: Minimum 4 GB (recommended: 8 GB)
- CPU: Minimum 2 cores (recommended: 4 cores)
- Disk: 20 GB available space
- Swap: 1 GB (Windows/Mac only)
- Click Apply & Restart
Visual Studio 2022 (Optional)
Visual Studio 2022 provides the best development experience for .NET microservices, with IntelliSense, debugging, and Docker integration.Download Visual Studio 2022
Download the Community (free) or Professional edition:Download Visual Studio 2022
Visual Studio Community is free for individual developers, open-source projects, academic research, education, and small professional teams.
Select Workloads
During installation, select these workloads:
- ASP.NET and web development - Required for ASP.NET Core development
- .NET desktop development - Optional, for desktop tools
- Azure development - Optional, for cloud deployment
- Container development - Enables Docker integration
- .NET 8.0 Runtime
- Docker Desktop integration
- Git for Windows (if not already installed)
Verify Installation
Launch Visual Studio 2022 and check the version:
- Go to Help → About Microsoft Visual Studio
- Verify version is 17.8 or higher (required for .NET 8)
- Open the AspNetRun solution
- Right-click the docker-compose project
- Verify “Docker” appears in the context menu
Optional Development Tools
Visual Studio Code
A lightweight, cross-platform alternative to Visual Studio.Install VS Code
Download from https://code.visualstudio.com/Install these extensions:
- C# Dev Kit - C# language support
- Docker - Docker integration
- REST Client - Test APIs directly in VS Code
- GitLens - Enhanced Git capabilities
Database Management Tools
For inspecting and managing the databases: PostgreSQL: SQL Server:- SQL Server Management Studio (SSMS) - Windows only
- Azure Data Studio - Cross-platform
- RedisInsight - Visual Redis browser
API Testing Tools
Postman: Download Postman- Import API collections
- Test REST endpoints
- View response data
- Lightweight alternative to Postman
- GraphQL support
Git
Version control for source code management.System Requirements
Minimum Requirements
- Operating System: Windows 10/11, macOS 11+, or Linux (Ubuntu 20.04+)
- Processor: Dual-core CPU (2 GHz or faster)
- Memory: 8 GB RAM (4 GB for Docker, 4 GB for OS and tools)
- Disk Space: 30 GB available
- Network: Broadband internet for downloading images
Recommended Requirements
- Operating System: Windows 11, macOS 13+, or Linux (Ubuntu 22.04+)
- Processor: Quad-core CPU (2.5 GHz or faster)
- Memory: 16 GB RAM (8 GB for Docker, 8 GB for OS and tools)
- Disk Space: 50 GB SSD
- Network: High-speed internet
Verification Checklist
Before proceeding to the quickstart guide, verify all prerequisites:Check Available Resources
Open Docker Desktop and verify:
- Memory allocation: 4 GB or more
- CPU allocation: 2 cores or more
- Available disk space: 20 GB or more
If all checks pass, you’re ready to proceed to the Quickstart Guide!
Troubleshooting
.NET SDK Not Found
Ifdotnet command is not recognized:
Windows: Add .NET to PATH
- Search for “Environment Variables”
- Edit System Environment Variables
- Add
C:\Program Files\dotnetto PATH
Docker Desktop Won’t Start
Windows:- Enable Virtualization in BIOS
- Install WSL 2:
wsl --install - Update Windows to the latest version
- Enable Rosetta 2 for Apple Silicon:
softwareupdate --install-rosetta - Grant Full Disk Access in System Preferences
- Check Docker service:
sudo systemctl status docker - Start Docker:
sudo systemctl start docker
Insufficient Permissions
Windows: Run Docker Desktop as Administrator Linux: Add user to docker groupPort Conflicts
Check if required ports are available:- 5432, 5433: PostgreSQL
- 6379: Redis
- 1433: SQL Server
- 5672, 15672: RabbitMQ
- 6000-6005, 6060-6065: Microservices
Next Steps
With all prerequisites installed, you’re ready to run the application:Quickstart Guide
Follow the step-by-step guide to run AspNetRun Microservices with Docker Compose
