Initial setup of frontend and backend

This commit is contained in:
Julian Tabel
2026-02-04 17:13:58 +01:00
parent 259c200d93
commit 6ee53a0533
72 changed files with 5687 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
---
# nuzlocke-tracker-8fcj
title: Frontend API Integration
status: todo
type: task
priority: normal
created_at: 2026-02-04T15:44:42Z
updated_at: 2026-02-04T15:47:24Z
parent: nuzlocke-tracker-f5ob
blocking:
- nuzlocke-tracker-uw2j
- nuzlocke-tracker-0q8f
- nuzlocke-tracker-hm6t
- nuzlocke-tracker-8tuw
---
Implement frontend services to communicate with the backend API.
## Checklist
- [ ] Create API client/service layer
- [ ] Implement API calls for:
- [ ] Fetch available games
- [ ] Fetch routes for a game
- [ ] Fetch Pokémon data
- [ ] Create/update/delete Nuzlocke runs
- [ ] Create/update encounters
- [ ] Update Pokémon status
- [ ] Add loading states and error handling
- [ ] Implement optimistic updates where appropriate
- [ ] Add retry logic for failed requests
## Technical Notes
- Use fetch or axios for HTTP requests
- Consider using React Query/TanStack Query or SWR for caching
- Type API responses with TypeScript