How rafaelobrasil/pokedexangular works
This is a Pokémon Pokédex web app with an Angular frontend, a NestJS backend, and PostgreSQL/Prisma described as infrastructure. The user-facing flow is account registration, in-memory credential storage, login, then a Pokémon list fetched from PokeAPI and displayed as cards. The sampled backend currently exposes only a Hello World endpoint; no sampled code connects it to the frontend or database. The database is retained as a documented capability, but its runtime wiring is unverified.
Main entry points: app.routes.ts Page routes · login.ts Login · lista-pokemon.ts Pokémon list · cadastro.ts Registration
Components 17
Angular frontend
- Root app
frontend/src/app/app.ts - App bootstrap
frontend/src/main.ts - Router config
frontend/src/app/app.config.ts - Page routes
frontend/src/app/app.routes.ts - Registration
frontend/src/app/componentes/cadastro/cadastro.ts - Login
frontend/src/app/componentes/login/login.ts - User state
frontend/src/app/services/usuario.ts
Pokédex browsing
- Pokémon list
frontend/src/app/componentes/lista-pokemon/lista-pokemon.ts - Pokémon card
frontend/src/app/componentes/card-pokemon/card-pokemon.ts
NestJS backend
- Nest entry
backend/src/main.ts - App module
backend/src/app.module.ts - Hello controller
backend/src/app.controller.ts - Hello service
backend/src/app.service.ts
Database infrastructure
- Prisma schema
backend/prisma/schema.prisma - PostgreSQL
docker-compose.yml
Other components
- Visitor
- PokeAPI
Connections 18
- Visitor → Root app: uses
README.md - App bootstrap → Root app: bootstraps
frontend/src/main.ts - App bootstrap → Router config: configures
frontend/src/main.ts - Router config → Page routes: provides
frontend/src/app/app.config.ts - Page routes → Registration: routes to
frontend/src/app/app.routes.ts - Page routes → Login: routes to
frontend/src/app/app.routes.ts - Page routes → Pokémon list: routes to
frontend/src/app/app.routes.ts - Registration → User state: stores credentials
frontend/src/app/componentes/cadastro/cadastro.ts - Registration → Login: navigates to
frontend/src/app/componentes/cadastro/cadastro.ts - Login → User state: checks credentials
frontend/src/app/componentes/login/login.ts - Login → Pokémon list: navigates to
frontend/src/app/componentes/login/login.ts - Pokémon list → PokeAPI: fetches Pokémon
frontend/src/app/componentes/lista-pokemon/lista-pokemon.ts - Pokémon list → Pokémon card: renders with
frontend/src/app/componentes/lista-pokemon/lista-pokemon.ts - Nest entry → App module: starts
backend/src/main.ts - App module → Hello controller: registers
backend/src/app.module.ts - App module → Hello service: provides
backend/src/app.module.ts - Hello controller → Hello service: calls
backend/src/app.controller.ts - Prisma schema → PostgreSQL: models data for