How yaroslav-kirsenko/casino works
This is a web casino application with account registration/login, user and admin pages, and browser-playable roulette, slot, and crash games. The visible game workflow is player interaction → game logic and result display; one slot client also fetches and submits balance updates. The tree identifies backend controller, service, model, and repository layers, but their source was not sampled, so backend calls beyond the explicit slot HTTP requests are left unwired. The duplicated resource trees are represented only where sampled behavior supports them.
Main entry points: templates Pages and entry · AuthController.java Authentication routes · Repo User repositories · LoginRegister Login and register
Components 20
Web experience
- Pages and entry
src/main/resources/templates - Login and register
src/main/resources/templates/LoginRegister - User pages
src/main/resources/templates - Admin login
src/main/resources/templates/LoginRegister/login-admin.html
Casino games
- Roulette
src/main/resources/static/js/Roulette/roulette1.js - Slot games
src/main/resources/static/js/Slot - Crash game
src/main/resources/static/js/Crash/crash1.js
Accounts and security
- Authentication routes
src/main/java/com/example/Casino/Controller/AuthController.java - User routes
src/main/java/com/example/Casino/Controller/UserController.java - Admin user routes
src/main/java/com/example/Casino/Controller/AdminUserController.java - Authentication service
src/main/java/com/example/Casino/Service/AuthenticationService.java - JWT service
src/main/java/com/example/Casino/Service/JwtService.java - JWT security
src/main/java/com/example/Casino/Config
Application backend
- Balance requests
src/main/resources/static/js/Slot/slot1/slot1.js - User services
src/main/java/com/example/Casino/Service/UserService.java - Admin user service
src/main/java/com/example/Casino/Service/AdminUserService.java - User repositories
src/main/java/com/example/Casino/Repo - Account records
src/main/java/com/example/Casino/Model - Spring application
src/main/java/com/example/Casino/CasinoApplication.java
Other components
- Player
Connections 20
- Player → Pages and entry: opens
- Pages and entry → Login and register: offers
- Pages and entry → User pages: offers
- Pages and entry → Admin login: offers
- Player → Roulette: plays
- Player → Slot games: plays
- Player → Crash game: plays
- Slot games → Balance requests: requests balance
- Balance requests → User routes: HTTP requests
- Login and register → Authentication routes: submits credentials
- Admin login → Admin user routes: admin access
- Authentication routes → Authentication service: delegates
- Authentication service → JWT service: uses tokens
- JWT security → JWT service: validates tokens
- User routes → User services: delegates
- Admin user routes → Admin user service: delegates
- User services → User repositories: uses
- Admin user service → User repositories: uses
- User repositories → Account records: persists
- Spring application → Authentication routes: starts application