How gabriellatcc/poketeamup works
PokeTeam Up is a Pokémon team-building web application: users browse or search Pokémon, assemble and manage teams, and authenticate through a Next.js client backed by a Laravel API. The graph follows the documented client/API split and the source-visible controller, repository, and model relationships. README capabilities include team strategy and account verification; some frontend wiring and those feature implementations were not shown, so uncertain links are dashed or omitted.
Main entry points: page.tsx My teams · PokeApiRepository.php Pokémon data · User.php User model · auth.php Auth routes
Components 30
Web client
- Home page
frontend/src/app/page.tsx - Pokédex
frontend/src/app/pokedex/page.tsx - Pokémon details
frontend/src/app/pokemon/[id]/page.tsx - My teams
frontend/src/app/myteams/page.tsx - Pokémon selector
frontend/components/PokemonSelectorPanel/PokemonSelectorPanel.tsx - Team card
frontend/components/TeamCard/TeamCard.tsx - Team details
frontend/components/TeamDetailsPanel/TeamDetailsPanel.tsx - Sign in
frontend/src/app/signin/page.tsx - Sign up
frontend/src/app/signup/page.tsx - Auth state
frontend/src/hooks/useAuth.ts - API client
frontend/src/lib/axios.ts
Laravel API
- API routes
backend/routes/api.php - Auth routes
backend/routes/auth.php - Pokémon API
backend/app/Http/Controllers/Api/PokemonController.php - Team API
backend/app/Http/Controllers/Api/TeamController.php
Domain and integrations
- User model
backend/app/Models/User.php - Team model
backend/app/Models/Team.php - Pokémon model
backend/app/Models/Pokemon.php - Pokémon data
backend/app/Repositories/PokeApiRepository.php - PokeAPI contract
backend/app/Interfaces/PokeApiInterface.php - Pokémon response
backend/app/Models/PokeApiResponse.php
Account access
- Registration
backend/app/Http/Controllers/Auth/RegisteredUserController.php - Login and logout
backend/app/Http/Controllers/Auth/AuthenticatedSessionController.php - Email verification
backend/app/Http/Controllers/Auth/VerifyEmailController.php - Login validation
backend/app/Http/Requests/Auth/LoginRequest.php - Registration validation
backend/app/Http/Requests/Auth/RegisterRequest.php - Auth service
backend/app/Services/AuthService.php
Other components
- User
- PokéAPI
- MySQL
Connections 31
- User → Home page: uses
README.md - User → Pokédex: browses
README.md - User → My teams: manages teams
README.md - User → Sign in: authenticates
- User → Sign up: registers
- Pokédex → API client: requests data
- My teams → API client: requests teams
- Sign in → Auth state: uses auth
- Sign up → Auth state: uses auth
- API client → API routes: calls API
README.md - API routes → Pokémon API: routes Pokémon
backend/routes/api.php - API routes → Team API: routes teams
backend/routes/api.php - Auth routes → Registration: routes registration
backend/routes/auth.php - Auth routes → Login and logout: routes sessions
backend/routes/auth.php - Auth routes → Email verification: routes verification
backend/routes/auth.php - Registration → Registration validation: validates with
backend/app/Http/Controllers/Auth/RegisteredUserController.php - Registration → User model: creates user
backend/app/Http/Controllers/Auth/RegisteredUserController.php - Login and logout → Login validation: authenticates with
backend/app/Http/Controllers/Auth/AuthenticatedSessionController.php - Pokémon API → Pokémon data: fetches Pokémon
backend/app/Http/Controllers/Api/PokemonController.php - Team API → Team model: creates and queries
backend/app/Http/Controllers/Api/TeamController.php - Team model → User model: belongs to
backend/app/Models/Team.php - Team model → Pokémon model: relates Pokémon
backend/app/Models/Team.php - Pokémon data → PokeAPI contract: implements
backend/app/Repositories/PokeApiRepository.php - Pokémon data → Pokémon response: builds responses
backend/app/Repositories/PokeApiRepository.php - Pokémon data → PokéAPI: requests data
backend/app/Repositories/PokeApiRepository.php - Team API → MySQL: persists teams
- User model → MySQL: persists accounts
- Pokémon selector → My teams: supports team selection
- Team card → My teams: displays teams
- Team details → My teams: shows team details
- Auth service → User model: creates user
backend/app/Services/AuthService.php