How kadufallone/pokemon-game-website works
PokellenttWebsite is an Angular Pokémon-collection app: users register or sign in, browse the catalog, capture a weighted-random Pokémon into their TrainerDex, and manage their collection. Admin-facing screens add catalog entries and inspect users’ collections and roles. The sampled code shows Firebase Authentication/Firestore operations and a direct PokéAPI lookup. Routing confirms the app’s page set; source for email verification and home behavior was not sampled, so their internal interactions are omitted.
Main entry points: app-routing.module.ts Page routing · firebase-api.component.ts Firestore helpers · login.component.ts Login and registration · capture-pokemon.component.ts Capture Pokémon
Components 17
Application shell
- Page routing
src/app/app-routing.module.ts - Navigation and role state
src/app/app.component.ts - App initialization
src/app/app.module.ts - Home page
src/app/pages/home/home.component.ts
Accounts and profiles
- Login and registration
src/app/pages/login/login.component.ts - Email verification
src/app/pages/email-verification/email-verification.component.ts - Player landing
src/app/pages/initial-page/initial-page.component.ts
Pokémon experience
- Capture Pokémon
src/app/pages/capture-pokemon/capture-pokemon.component.ts - My Pokémon
src/app/pages/my-pokemons/my-pokemons.component.ts - Pokédex lookup
src/app/pages/poke-dex/poke-dex.component.ts
Catalog and administration
- Add catalog Pokémon
src/app/pages/add-pokemon/add-pokemon.component.ts - User administration
src/app/pages/usuarios/usuarios.component.ts
External services
- Firestore helpers
src/app/tools/firebase-api/firebase-api.component.ts - Firebase configuration
src/environments/environment.ts - Firebase Auth / Firestore
- PokéAPI
Other components
- Player / admin
Connections 24
- Player / admin → Page routing: opens pages
src/app/app-routing.module.ts - Page routing → Home page: routes to
src/app/app-routing.module.ts - Page routing → Login and registration: routes to
src/app/app-routing.module.ts - Page routing → Email verification: routes to
src/app/app-routing.module.ts - Page routing → Player landing: routes to
src/app/app-routing.module.ts - Page routing → Capture Pokémon: routes to
src/app/app-routing.module.ts - Page routing → My Pokémon: routes to
src/app/app-routing.module.ts - Page routing → Pokédex lookup: routes to
src/app/app-routing.module.ts - Page routing → Add catalog Pokémon: routes to
src/app/app-routing.module.ts - Page routing → User administration: routes to
src/app/app-routing.module.ts - App initialization → Firebase configuration: initializes with
src/app/app.module.ts - App initialization → Firebase Auth / Firestore: initializes
src/app/app.module.ts - Login and registration → Firebase Auth / Firestore: authenticates; creates profiles
src/app/pages/login/login.component.ts - Login and registration → Email verification: navigates for verification
src/app/pages/login/login.component.ts - Navigation and role state → Firebase Auth / Firestore: reads profile role
src/app/app.component.ts - Player landing → Firebase Auth / Firestore: reads player profile
src/app/pages/initial-page/initial-page.component.ts - Capture Pokémon → Firestore helpers: loads catalog
src/app/pages/capture-pokemon/capture-pokemon.component.ts - Capture Pokémon → Firebase Auth / Firestore: writes captured Pokémon
src/app/pages/capture-pokemon/capture-pokemon.component.ts - My Pokémon → Firestore helpers: reads and manages collection
src/app/pages/my-pokemons/my-pokemons.component.ts - Add catalog Pokémon → Firestore helpers: adds catalog entry
src/app/pages/add-pokemon/add-pokemon.component.ts - User administration → Firestore helpers: manages users and collections
src/app/pages/usuarios/usuarios.component.ts - Firestore helpers → Firebase Auth / Firestore: reads and writes documents
src/app/tools/firebase-api/firebase-api.component.ts - Pokédex lookup → PokéAPI: fetches Pokémon data
src/app/pages/poke-dex/poke-dex.component.ts - Pokédex lookup → Firebase Auth / Firestore: checks signed-in user
src/app/pages/poke-dex/poke-dex.component.ts