Move from Create React to Vite
Some checks failed
CI / Go tests & lint (push) Successful in 9s
CI / Frontend tests & type-check (push) Failing after 14s

This commit is contained in:
2026-04-09 10:44:50 -03:00
parent a8e170f7e1
commit 8344bf016f
27 changed files with 1746 additions and 16621 deletions

View File

@@ -45,7 +45,7 @@ All API routes are prefixed `/api/v1`. The Go binary serves the compiled React a
### React Frontend
Standard CRA layout in `web/src/`:
Vite + React + TypeScript in `web/src/`. Tests use Vitest with jsdom.
- `api.ts` — typed fetch wrapper; reads JWT from `localStorage`, prefixes `BASE = '/api/v1'`
- `auth.tsx``AuthProvider` context; decodes the JWT payload to expose `role` and `volunteerID`