How 2003-anonymous/lernperiode-12 works
This repository is a browser-based casino with an ASP.NET Core account API. Players browse games, register or sign in, and play frontend-driven games; account endpoints manage sessions and balances. The README describes roulette, slot machines, Mines, and scratch cards, while the tree also contains Pharaoh and Wild West games. Backend wiring is shown in sampled files; frontend-to-API balance updates are documented generally, but game-specific calls are not verified in the excerpts.
Main entry points: AccountController.cs Account endpoints · CasinoContext.cs Casino context · Program.cs Static site host · login.js Login and registration UI
Components 17
Casino web
- Static site host
LP-12_API/Program.cs - Home and age gate
LP-12_API/wwwroot/home.js - Login and registration UI
LP-12_API/wwwroot/assets/login.js - Balance UI
LP-12_API/wwwroot/assets/balance.js
Casino games
- Roulette
LP-12_API/wwwroot/roulette.html - Slot games
LP-12_API/wwwroot/pharaoh.js - Mines
mines.js - Scratch cards
LP-12_API/wwwroot/rubbellos.js - Wild West
LP-12_API/wwwroot/wildwest.js
Accounts API
- Account endpoints
LP-12_API/Controllers/AccountController.cs - Password hashing
LP-12_API/Services/Password.cs
Account data
- Account model
LP-12_API/Models/Account.cs - Request and response DTOs
LP-12_API/Models/Dtos.cs - Casino context
LP-12_API/Models/CasinoContext.cs - Seeded accounts
LP-12_API/Models/ModelBuilderExtensions.cs
Other components
- Player
- SQL Server
Connections 21
- Player → Static site host: opens
LP-12_API/Program.cs - Static site host → Home and age gate: serves
LP-12_API/Program.cs - Player → Login and registration UI: uses
readme.md - Login and registration UI → Account endpoints: authenticates
readme.md - Player → Roulette: plays
readme.md - Player → Slot games: plays
readme.md - Player → Mines: plays
readme.md - Player → Scratch cards: plays
readme.md - Player → Wild West: plays
- Player → Balance UI: checks balance
- Roulette → Account endpoints: saves results
readme.md - Slot games → Account endpoints: saves results
readme.md - Mines → Account endpoints: saves results
readme.md - Scratch cards → Account endpoints: saves results
readme.md - Account endpoints → Password hashing: hashes and verifies
LP-12_API/Controllers/AccountController.cs - Account endpoints → Casino context: reads and writes
LP-12_API/Controllers/AccountController.cs - Casino context → Account model: stores
LP-12_API/Models/CasinoContext.cs - Casino context → Seeded accounts: seeds
LP-12_API/Models/CasinoContext.cs - Account endpoints → Request and response DTOs: uses
- Static site host → Casino context: configures
LP-12_API/Program.cs - Casino context → SQL Server: persists to