Move from Create React to Vite
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user