How karthi25hzm/gamecatalog works
Game Catalog is an ASP.NET Core backend for managing games, studios, users, reviews, and scheduled discounts. Clients call API controllers, which use repository contracts to query or update domain entities; EF Core repositories persist catalog data. A separate Worker Service runs discount workflows against price schedules and games. The README documents JWT authentication and discount processing; sampled controller and repository references support the main API-to-repository paths. Some controller, repository, and worker implementations were not excerpted, so their internal call details are not expanded.
Main entry points: Interfaces Repository Contracts · GameCatalogDbContext.cs Catalog Database · GameRepository.cs Game Repository · Worker.cs Discount Worker
Components 22
HTTP API
- Games API
GameCatalog/GameCatalog.Api/Controllers/GamesController.cs - Studio API
GameCatalog/GameCatalog.Api/Controllers/StudioController.cs - Studio Games API
GameCatalog/GameCatalog.Api/Controllers/StudioGamesController.cs - User API
GameCatalog/GameCatalog.Api/Controllers/UserController.cs - Auth API
GameCatalog/GameCatalog.Api/Controllers/AuthController .cs - Review API
GameCatalog/GameCatalog.Api/Controllers/GameReviewController.cs - Price Schedule API
- JWT Token Service
GameCatalog/GameCatalog.Api/Helper/TokenService .cs
Catalog Domain
- Games
GameCatalog/GameCatalog/Domain/Game.cs - Studios
GameCatalog/GameCatalog/Domain/Studio.cs - Users
GameCatalog/GameCatalog/Domain/User.cs - Reviews
GameCatalog/GameCatalog/Domain/GameReview.cs - Repository Contracts
GameCatalog/GameCatalog/Interfaces
Data Access
- Game Repository
GameCatalog/GameCatalog.Infrastructure/Repository/GameRepository.cs - Studio Repository
GameCatalog/GameCatalog.Infrastructure/Repository/StudioRepository.cs - User Repository
GameCatalog/GameCatalog.Infrastructure/Repository/UserRepository.cs - Review Repository
GameCatalog/GameCatalog.Infrastructure/Repository/GameReviewRepository .cs - Schedule Repository
GameCatalog/GameCatalog.Infrastructure/Repository/GamePriceScheduleRepository .cs - Catalog Database
GameCatalog/GameCatalog.Infrastructure/Persistence/GameCatalogDbContext.cs
Discount Processing
- Price Schedules
GameCatalog/GameCatalog/Domain/GamePriceSchedule.cs - Discount Worker
GameCatalog/GameCatalog.Worker/Worker.cs
Other components
- API Client
Connections 26
- API Client → Games API: requests catalog
README.md - API Client → Studio API: manages studios
README.md - API Client → User API: manages users
README.md - API Client → Review API: manages reviews
README.md - API Client → Price Schedule API: manages discounts
- Games API → Repository Contracts: calls game contract
GameCatalog/GameCatalog.Api/Controllers/GamesController.cs - Studio API → Repository Contracts: calls studio contract
GameCatalog/GameCatalog.Api/Controllers/StudioController.cs - Studio Games API → Repository Contracts: uses game contract
- User API → Repository Contracts: calls user contract
GameCatalog/GameCatalog.Api/Controllers/UserController.cs - Review API → Repository Contracts: calls review contract
GameCatalog/GameCatalog.Api/Controllers/GameReviewController.cs - Price Schedule API → Repository Contracts: uses schedule contract
- Auth API → JWT Token Service: issues JWT
- Repository Contracts → Game Repository: implemented by
GameCatalog/GameCatalog.Infrastructure/Repository/GameRepository.cs - Game Repository → Catalog Database: reads and writes
GameCatalog/GameCatalog.Infrastructure/Repository/GameRepository.cs - Studio Repository → Catalog Database: accesses data
GameCatalog/GameCatalog.Tests/GameCatalog/GameCatalogTests.cs - User Repository → Catalog Database: accesses data
GameCatalog/GameCatalog.Infrastructure/Repository/UserRepository.cs - Review Repository → Catalog Database: accesses data
GameCatalog/GameCatalog.Infrastructure/Repository/GameReviewRepository .cs - Schedule Repository → Catalog Database: accesses data
GameCatalog/GameCatalog.Infrastructure/Repository/GamePriceScheduleRepository .cs - Discount Worker → Schedule Repository: processes schedules
GameCatalog/GameCatalog.Worker/Worker.cs - Discount Worker → Game Repository: updates discounts
GameCatalog/GameCatalog.Worker/Program.cs - Game Repository → Games: loads games
GameCatalog/GameCatalog.Infrastructure/Repository/GameRepository.cs - Review Repository → Reviews: loads reviews
GameCatalog/GameCatalog.Infrastructure/Repository/GameReviewRepository .cs - User Repository → Users: loads users
GameCatalog/GameCatalog.Infrastructure/Repository/UserRepository.cs - Schedule Repository → Price Schedules: loads schedules
GameCatalog/GameCatalog.Infrastructure/Repository/GamePriceScheduleRepository .cs - Games → Studios: references studio
GameCatalog/GameCatalog/Domain/Game.cs - Discount Worker → Games: applies price changes
GameCatalog/GameCatalog.Worker/Worker.cs