How mchomem/fiap works
FIAP Cloud Games is an ASP.NET Core modular-monolith API for user identity/authentication, game catalog, promotions, and acquired-game libraries. The principal purchase-like workflow is authenticated library acquisition: the library service checks identity and catalog, obtains a promotional price, then saves the acquired item; there is no cart or payment stage. Each module separates presentation, application, domain, contracts, and infrastructure, while modules share a physical PostgreSQL database. Arrows are limited to controller/service calls shown in excerpts, acquisition calls shown in its excerpt, and architecture explicitly documented in the README; other internals are represented without inferred call chains.
Main entry points: Program.cs API host · UserLibrary Acquisition and queries · Features Identity services · UsersController.cs Identity endpoints
Components 23
HTTP API
- API host
src/Api/FiapCloudGames.Api/Program.cs
Identity
- Identity endpoints
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Users/UsersController.cs - Login endpoint
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Authentication/Login/AuthenticationController.cs - Identity services
src/Modules/Identity/FiapCloudGames.Identity.Application/Features - Users and roles
src/Modules/Identity/FiapCloudGames.Identity.Domain/Entities/User.cs - Identity persistence
src/Modules/Identity/FiapCloudGames.Identity.Infrastructure/Persistence/IdentityDbContext.cs - Identity contract
src/Modules/Identity/FiapCloudGames.Identity.Contracts/IIdentityModule.cs
Catalog
- Game endpoints
src/Modules/Catalog/FiapCloudGames.Catalog.Presentation/Features/Games/GamesController.cs - Catalog services
src/Modules/Catalog/FiapCloudGames.Catalog.Application/Features/Games - Game model
src/Modules/Catalog/FiapCloudGames.Catalog.Domain/Entities/Game.cs - Catalog persistence
src/Modules/Catalog/FiapCloudGames.Catalog.Infrastructure/Persistence/CatalogDbContext.cs - Catalog contract
src/Modules/Catalog/FiapCloudGames.Catalog.Contracts/ICatalogModule.cs
Promotions
- Promotion endpoints
src/Modules/Promotions/FiapCloudGames.Promotions.Presentation/Features/Promotions/PromotionsController.cs - Promotion and pricing
src/Modules/Promotions/FiapCloudGames.Promotions.Application/Features - Promotion model
src/Modules/Promotions/FiapCloudGames.Promotions.Domain/Entities/Promotion.cs - Promotion persistence
src/Modules/Promotions/FiapCloudGames.Promotions.Infrastructure/Persistence/PromotionsDbContext.cs - Pricing contract
src/Modules/Promotions/FiapCloudGames.Promotions.Contracts/IPromotionsModule.cs
Library
- Library endpoints
src/Modules/Library/FiapCloudGames.Library.Presentation/Features/UserLibrary/LibraryController.cs - Acquisition and queries
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary - Owned games
src/Modules/Library/FiapCloudGames.Library.Domain/Entities/GameLibrary.cs - Library persistence
src/Modules/Library/FiapCloudGames.Library.Infrastructure/Persistence/LibraryDbContext.cs
Other components
- API client
- PostgreSQL
Connections 21
- API client → API host: sends HTTP
README.md - API host → Identity endpoints: hosts routes
src/Api/FiapCloudGames.Api/Program.cs - API host → Game endpoints: hosts routes
src/Api/FiapCloudGames.Api/Program.cs - API host → Promotion endpoints: hosts routes
src/Api/FiapCloudGames.Api/Program.cs - API host → Library endpoints: hosts routes
src/Api/FiapCloudGames.Api/Program.cs - Identity endpoints → Identity services: invokes services
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Users/UsersController.cs - Login endpoint → Identity services: invokes login
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Authentication/Login/AuthenticationController.cs - Game endpoints → Catalog services: invokes services
src/Modules/Catalog/FiapCloudGames.Catalog.Presentation/Features/Games/GamesController.cs - Promotion endpoints → Promotion and pricing: invokes services
src/Modules/Promotions/FiapCloudGames.Promotions.Presentation/Features/Promotions/PromotionsController.cs - Library endpoints → Acquisition and queries: invokes services
src/Modules/Library/FiapCloudGames.Library.Presentation/Features/UserLibrary/LibraryController.cs - Acquisition and queries → Identity contract: checks user
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Acquisition and queries → Catalog contract: checks game
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Acquisition and queries → Pricing contract: requests quote
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Catalog contract → Catalog services: module contract
README.md - Pricing contract → Promotion and pricing: module contract
README.md - Identity contract → Identity services: module contract
README.md - API host → PostgreSQL: shares database
README.md - Identity persistence → PostgreSQL: uses PostgreSQL
- Catalog persistence → PostgreSQL: uses PostgreSQL
- Promotion persistence → PostgreSQL: uses PostgreSQL
- Library persistence → PostgreSQL: uses PostgreSQL