Myths of Earth is a modular space trading simulation backend built using microservices with .NET. Designed for extensibility, the system models various gameplay domains like player data, missions, galactic systems, and ship management โ each encapsulated in an independent microservice.
This backend follows a clean service-oriented architecture:
[Frontend: Unity Game / Web App]
โ
[ApiGateway]
โโโโโโโโโฌโโโโโโฌโโโโโโโโโโโโโ
โผ โผ โผ โผ
[Auth] [Player] [Market] [Galaxy] ...
Service | Description |
---|---|
ApiGateway | Routes requests to backend services using YARP. |
AuthService | Handles authentication, login, and token issuance. |
GalaxyService | Manages stars, systems, and planetary data. |
MarketService | Controls in-game trading and economy simulation. |
MissionService | Provides missions and quest logic. |
PlayerService | Stores player data, stats, and progress. |
ShipService | Manages ships, their upgrades, and stats. |
Each service typically contains:
Controllers/
โ REST API endpointsModels/
โ EF Core entities and DTOsMigrations/
โ DB migration scriptsProgram.cs
โ Service entrypoint and configurationDockerfile
โ Docker build instructionsYou can run all services using Docker Compose:
# Start all services
docker-compose up --build
Or run a service manually for debugging:
# Example: Run AuthService locally
cd services/AuthService
dotnet run
Myths of Earth offers a clean, modular backend ideal for simulation-style games. It balances technical separation with easy orchestration, making it a strong starting point for full-scale multiplayer space simulations.