How davilazzaroto/gamehub-angular works
GameHub is an Angular game catalog. A visitor enters through the app shell and navigates to the home, catalog, detail, registration, or about pages; catalog searches and detail lookups read the in-memory game service, while registration validates and adds a game before navigating back to the catalog. The graph includes the documented page capabilities, shared card, and domain model. Edges are limited to relationships shown in source excerpts or the README; unsampled page templates and service behavior are not inferred beyond those references.
Main entry points: app.routes.ts Page routes · jogo.ts Game service · jogos.ts Game catalog · main.ts App bootstrap
Components 15
App and navigation
- App bootstrap
src/main.ts - Router config
src/app/app.config.ts - Page routes
src/app/app.routes.ts - App shell
src/app/app.ts - Navigation menu
src/app/components/menu/menu.ts
Catalog pages
- Home highlights
src/app/pages/home/home.ts - Game catalog
src/app/pages/jogos/jogos.ts - Game details
src/app/pages/jogo-detalhes/jogo-detalhes.ts - Game registration
src/app/pages/cadastrar-jogo/cadastrar-jogo.ts - About page
src/app/pages/sobre/sobre.ts
Shared UI and domain
- Game card
src/app/components/jogo-card/jogo-card.ts - Game model
src/app/models/jogo.ts
Game data
- Game service
src/app/services/jogo.ts - In-memory games
src/app/services/jogo.ts
Other components
- Visitor
Connections 19
- Visitor → App bootstrap: opens app
README.md - App bootstrap → App shell: bootstraps
src/main.ts - App bootstrap → Router config: configures
src/main.ts - Router config → Page routes: provides routes
src/app/app.config.ts - Page routes → Home highlights: routes to
src/app/app.routes.ts - Page routes → Game catalog: routes to
src/app/app.routes.ts - Page routes → Game details: routes to
src/app/app.routes.ts - Page routes → Game registration: routes to
src/app/app.routes.ts - Page routes → About page: routes to
src/app/app.routes.ts - App shell → Navigation menu: renders
src/app/app.ts - Home highlights → Game service: reads highlights
src/app/pages/home/home.ts - Game catalog → Game service: searches games
src/app/pages/jogos/jogos.ts - Game catalog → Game card: uses cards
src/app/pages/jogos/jogos.ts - Game details → Game service: looks up game
src/app/pages/jogo-detalhes/jogo-detalhes.ts - Game registration → Game service: adds game
src/app/pages/cadastrar-jogo/cadastrar-jogo.ts - Game registration → Game catalog: navigates after save
src/app/pages/cadastrar-jogo/cadastrar-jogo.ts - Game service → In-memory games: reads and writes
src/app/services/jogo.ts - Game service → Game model: uses type
src/app/services/jogo.ts - Game card → Game model: accepts game
src/app/components/jogo-card/jogo-card.ts