How marioguilherme/fiapcloudgames works
FiapCloudGames is an ASP.NET Core API for user registration, authentication, and user management, with a games-facing controller present but no sampled game-service implementation. The main workflow is an HTTP request through an API controller to application services, which apply user/authentication rules and use a repository backed by Entity Framework Core. Validation and exception handling are supporting API layers. The README documents JWT, BCrypt, and SQL Server; some wiring and game behavior are not shown in sampled source, so those links are omitted or marked unverified.
Main entry points: UserService.cs User workflows · FiapCloudGamesDbContext.cs EF Core context · InputModels Request models · User.cs User entity
Components 19
HTTP API
- Auth routes
FiapCloudGames.API/Controllers/AuthController.cs - User routes
FiapCloudGames.API/Controllers/UsersController.cs - Games routes
FiapCloudGames.API/Controllers/GamesController.cs - API setup
FiapCloudGames.API/Program.cs - Request validation
FiapCloudGames.API/Filters/ValidationFilter.cs - Error handling
FiapCloudGames.API/Middlewares/ExceptionMiddleware.cs
Application Services
- User workflows
FiapCloudGames.Application/Services/UserService.cs - Token generation
FiapCloudGames.Application/Services/AuthService.cs - Input rules
FiapCloudGames.Application/Validators - Request models
FiapCloudGames.Application/InputModels - Response models
FiapCloudGames.Application/ViewModels
User Domain
- User entity
FiapCloudGames.Domain/Entities/User.cs - Email value
FiapCloudGames.Domain/ValueObjects/Email.cs - User types
FiapCloudGames.Domain/Enums/UserType.cs - User repository contract
FiapCloudGames.Domain/Repositories/IUserRepository.cs
Persistence
- User repository
FiapCloudGames.Infrastructure/Persistence/Repositories/UserRepository.cs - EF Core context
FiapCloudGames.Infrastructure/Persistence/FiapCloudGamesDbContext.cs - SQL Server
Other components
- API client
Connections 19
- API client → Auth routes: sends auth requests
README.md - API client → User routes: sends user requests
README.md - API client → Games routes: accesses game routes
FiapCloudGames.API/Controllers/GamesController.cs - Auth routes → User workflows: delegates auth
FiapCloudGames.API/Controllers/AuthController.cs - User routes → User workflows: delegates user actions
FiapCloudGames.API/Controllers/UsersController.cs - API setup → Request validation: registers filter
FiapCloudGames.API/Program.cs - API setup → Error handling: configures middleware
FiapCloudGames.API/Program.cs - User workflows → User repository contract: calls repository
FiapCloudGames.Application/Services/UserService.cs - User workflows → Token generation: generates tokens
FiapCloudGames.Application/Services/UserService.cs - User workflows → User entity: creates and updates
FiapCloudGames.Application/Services/UserService.cs - User workflows → Request models: accepts inputs
FiapCloudGames.Application/Services/UserService.cs - User workflows → Response models: returns views
FiapCloudGames.Application/Services/UserService.cs - Input rules → Request models: validates
FiapCloudGames.Application/Validators/RegisterUserInputModelValidator.cs - User entity → User types: uses role
FiapCloudGames.Domain/Entities/User.cs - Request models → Email value: uses email type
FiapCloudGames.Application/InputModels/LoginInputModel.cs - User repository → User repository contract: implements
FiapCloudGames.Infrastructure/Persistence/Repositories/UserRepository.cs - User repository → EF Core context: queries and saves
FiapCloudGames.Infrastructure/Persistence/Repositories/UserRepository.cs - EF Core context → User entity: maps users
FiapCloudGames.Infrastructure/Persistence/FiapCloudGamesDbContext.cs - EF Core context → SQL Server: persists data
README.md