How kacper0276/praca_inzynierska_plemiona works
Terra Bellum is a browser-based village strategy game with an Angular client and NestJS API. Players authenticate, manage a village and army, interact with a world map, and use social and progression features; administrators manage game content and reports. The client communicates with the API, while the backend organizes features as controller–service–repository modules backed by a database. The README establishes the client/API split; edges below are limited to relationships shown in excerpts, the source index, or README, so some feature wiring is intentionally omitted.
Main entry points: data-source.ts SQL Database · auth.controller.ts Authentication Routes · main.ts Backend API · app.module.ts Angular App
Components 25
Player Client
- Angular App
client/src/app/app.module.ts - Game Routes
client/src/app/modules/game/game-routing.module.ts - Game Views
client/src/app/modules/game/components - Game API Services
client/src/app/modules/game/services - Client Authentication
client/src/app/modules/auth/services/auth.service.ts
Village Gameplay
- Village Management
backend/src/villages/services/villages.service.ts - Building Management
backend/src/buildings/services/buildings.service.ts - Army Management
backend/src/army/services/army.service.ts - Battle Simulation
backend/src/battle - Resources
backend/src/resources/services/resources.service.ts
Social and Progression
- Social Features
backend/src/chat - Clans
backend/src/clans/services/clans.service.ts - Friend Requests
backend/src/friend-requests - Quests
backend/src/quests/services/quests.service.ts - Rankings
backend/src/ranking/services/ranking.service.ts
Identity and Platform
- Backend API
backend/src/main.ts - Authentication Routes
backend/src/auth/controllers/auth.controller.ts - Authentication Logic
backend/src/auth/services/auth.service.ts - User Management
backend/src/users/services/users.service.ts - Game Servers
backend/src/servers - SQL Database
backend/src/core/database/data-source.ts
Administration
- Admin Panel
client/src/app/modules/admin-panel/admin-panel-routing.module.ts - Reports
backend/src/reports/controllers/reports.controller.ts - Admin Game Tools
client/src/app/modules/admin-panel/components
Other components
- Player
Connections 22
- Player → Angular App: uses
README.md - Angular App → Game Routes: loads routes
client/src/app/app.module.ts - Game Routes → Game Views: routes to
client/src/app/modules/game/game-routing.module.ts - Game API Services → Backend API: calls API
README.md - Client Authentication → Backend API: calls API
client/src/app/modules/auth/services/auth.service.ts - Backend API → Authentication Routes: routes requests
- Authentication Routes → Authentication Logic: delegates to
backend/src/auth/controllers/auth.controller.ts - Authentication Logic → User Management: uses user repository
backend/src/auth/services/auth.service.ts - Authentication Routes → User Management: delegates user actions
- Village Management → SQL Database: reads and writes
- Building Management → SQL Database: reads and writes
- Army Management → SQL Database: reads and writes
- Resources → SQL Database: reads and writes
- Clans → SQL Database: reads and writes
- Quests → SQL Database: reads and writes
- Social Features → SQL Database: reads and writes
- Friend Requests → SQL Database: reads and writes
- Rankings → SQL Database: reads
- Game Servers → SQL Database: reads and writes
- Game Views → Game API Services: uses
- Admin Panel → Admin Game Tools: routes to
client/src/app/modules/admin-panel/admin-panel-routing.module.ts - Reports → SQL Database: persists reports