# kadufallone/pokemon-game-website architecture

> Architecture diagram of the GitHub repository kadufallone/pokemon-game-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kadufallone/pokemon-game-website
- Repository: https://github.com/kadufallone/pokemon-game-website

## Overview

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: [`src/app/app-routing.module.ts`](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app-routing.module.ts) (Page routing), [`src/app/tools/firebase-api/firebase-api.component.ts`](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/tools/firebase-api/firebase-api.component.ts) (Firestore helpers), [`src/app/pages/login/login.component.ts`](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/login/login.component.ts) (Login and registration), [`src/app/pages/capture-pokemon/capture-pokemon.component.ts`](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/capture-pokemon/capture-pokemon.component.ts) (Capture Pokémon)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_routing["Page routing"]
  node_shell["Navigation and role state<br/>[app.component.ts]"]
  node_module["App initialization<br/>[app.module.ts]"]
  node_home["Home page<br/>[home.component.ts]"]
end

subgraph group_accounts["Accounts and profiles"]
  node_login["Login and registration<br/>[login.component.ts]"]
  node_verification["Email verification"]
  node_initial["Player landing"]
end

subgraph group_pokemon["Pokémon experience"]
  node_capture["Capture Pokémon"]
  node_collection["My Pokémon"]
  node_pokedex["Pokédex lookup"]
end

subgraph group_admin["Catalog and administration"]
  node_add["Add catalog Pokémon"]
  node_users["User administration"]
end

subgraph group_services["External services"]
  node_firebaseapi["Firestore helpers"]
  node_config["Firebase configuration<br/>[environment.ts]"]
  node_firebase[("Firebase Auth / Firestore")]
  node_pokeapi["PokéAPI"]
end

node_visitor(("Player / admin"))

node_visitor -->|"opens pages"| node_routing
node_routing -->|"routes to"| node_home
node_routing -->|"routes to"| node_login
node_routing -->|"routes to"| node_verification
node_routing -->|"routes to"| node_initial
node_routing -->|"routes to"| node_capture
node_routing -->|"routes to"| node_collection
node_routing -->|"routes to"| node_pokedex
node_routing -->|"routes to"| node_add
node_routing -->|"routes to"| node_users
node_module -->|"initializes with"| node_config
node_module -->|"initializes"| node_firebase
node_login -->|"authenticates; creates profiles"| node_firebase
node_login -->|"navigates for verification"| node_verification
node_shell -->|"reads profile role"| node_firebase
node_initial -->|"reads player profile"| node_firebase
node_capture -->|"loads catalog"| node_firebaseapi
node_capture -->|"writes captured Pokémon"| node_firebase
node_collection -->|"reads and manages collection"| node_firebaseapi
node_add -->|"adds catalog entry"| node_firebaseapi
node_users -->|"manages users and collections"| node_firebaseapi
node_firebaseapi -->|"reads and writes documents"| node_firebase
node_pokedex -->|"fetches Pokémon data"| node_pokeapi
node_pokedex -->|"checks signed-in user"| node_firebase

click node_routing "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app-routing.module.ts"
click node_shell "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app.component.ts"
click node_module "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app.module.ts"
click node_home "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/home/home.component.ts"
click node_login "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/login/login.component.ts"
click node_verification "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/email-verification/email-verification.component.ts"
click node_initial "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/initial-page/initial-page.component.ts"
click node_capture "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/capture-pokemon/capture-pokemon.component.ts"
click node_collection "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/my-pokemons/my-pokemons.component.ts"
click node_pokedex "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/poke-dex/poke-dex.component.ts"
click node_add "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/add-pokemon/add-pokemon.component.ts"
click node_users "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/usuarios/usuarios.component.ts"
click node_firebaseapi "https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/tools/firebase-api/firebase-api.component.ts"
click node_config "https://github.com/kadufallone/pokemon-game-website/blob/main/src/environments/environment.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routing,node_shell,node_module,node_home toneBlue
class node_login,node_verification,node_initial toneAmber
class node_capture,node_collection,node_pokedex toneMint
class node_add,node_users toneRose
class node_firebaseapi,node_config,node_firebase,node_pokeapi,node_visitor toneIndigo
```

## Components

### Application shell

- [Page routing](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app-routing.module.ts): `src/app/app-routing.module.ts`
- [Navigation and role state](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [App initialization](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/app.module.ts): `src/app/app.module.ts`
- [Home page](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/home/home.component.ts): `src/app/pages/home/home.component.ts`

### Accounts and profiles

- [Login and registration](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/login/login.component.ts): `src/app/pages/login/login.component.ts`
- [Email verification](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/email-verification/email-verification.component.ts): `src/app/pages/email-verification/email-verification.component.ts`
- [Player landing](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/initial-page/initial-page.component.ts): `src/app/pages/initial-page/initial-page.component.ts`

### Pokémon experience

- [Capture Pokémon](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/capture-pokemon/capture-pokemon.component.ts): `src/app/pages/capture-pokemon/capture-pokemon.component.ts`
- [My Pokémon](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/my-pokemons/my-pokemons.component.ts): `src/app/pages/my-pokemons/my-pokemons.component.ts`
- [Pokédex lookup](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/poke-dex/poke-dex.component.ts): `src/app/pages/poke-dex/poke-dex.component.ts`

### Catalog and administration

- [Add catalog Pokémon](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/add-pokemon/add-pokemon.component.ts): `src/app/pages/add-pokemon/add-pokemon.component.ts`
- [User administration](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/pages/usuarios/usuarios.component.ts): `src/app/pages/usuarios/usuarios.component.ts`

### External services

- [Firestore helpers](https://github.com/kadufallone/pokemon-game-website/blob/main/src/app/tools/firebase-api/firebase-api.component.ts): `src/app/tools/firebase-api/firebase-api.component.ts`
- [Firebase configuration](https://github.com/kadufallone/pokemon-game-website/blob/main/src/environments/environment.ts): `src/environments/environment.ts`
- **Firebase Auth / Firestore**
- **PokéAPI**

### Other components

- **Player / admin**

## Connections

- Player / admin → Page routing: opens pages (evidence: `src/app/app-routing.module.ts`)
- Page routing → Home page: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Login and registration: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Email verification: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Player landing: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Capture Pokémon: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → My Pokémon: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Pokédex lookup: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → Add catalog Pokémon: routes to (evidence: `src/app/app-routing.module.ts`)
- Page routing → User administration: routes to (evidence: `src/app/app-routing.module.ts`)
- App initialization → Firebase configuration: initializes with (evidence: `src/app/app.module.ts`)
- App initialization → Firebase Auth / Firestore: initializes (evidence: `src/app/app.module.ts`)
- Login and registration → Firebase Auth / Firestore: authenticates; creates profiles (evidence: `src/app/pages/login/login.component.ts`)
- Login and registration → Email verification: navigates for verification (evidence: `src/app/pages/login/login.component.ts`)
- Navigation and role state → Firebase Auth / Firestore: reads profile role (evidence: `src/app/app.component.ts`)
- Player landing → Firebase Auth / Firestore: reads player profile (evidence: `src/app/pages/initial-page/initial-page.component.ts`)
- Capture Pokémon → Firestore helpers: loads catalog (evidence: `src/app/pages/capture-pokemon/capture-pokemon.component.ts`)
- Capture Pokémon → Firebase Auth / Firestore: writes captured Pokémon (evidence: `src/app/pages/capture-pokemon/capture-pokemon.component.ts`)
- My Pokémon → Firestore helpers: reads and manages collection (evidence: `src/app/pages/my-pokemons/my-pokemons.component.ts`)
- Add catalog Pokémon → Firestore helpers: adds catalog entry (evidence: `src/app/pages/add-pokemon/add-pokemon.component.ts`)
- User administration → Firestore helpers: manages users and collections (evidence: `src/app/pages/usuarios/usuarios.component.ts`)
- Firestore helpers → Firebase Auth / Firestore: reads and writes documents (evidence: `src/app/tools/firebase-api/firebase-api.component.ts`)
- Pokédex lookup → PokéAPI: fetches Pokémon data (evidence: `src/app/pages/poke-dex/poke-dex.component.ts`)
- Pokédex lookup → Firebase Auth / Firestore: checks signed-in user (evidence: `src/app/pages/poke-dex/poke-dex.component.ts`)
