React + TypeScript + Vite frontend application.
- Install dependencies:
npm install- Create a
.envfile in the frontend directory:
VITE_API_URL=http://localhost:3001/api- Run the development server:
npm run devThe frontend will run on http://localhost:8080
npm run buildThe built files will be in the dist folder.
src/components- React componentssrc/pages- Page componentssrc/hooks- Custom React hookssrc/lib- Utility functions and API clientsrc/components/ui- shadcn/ui components
The frontend communicates with the backend API through the API client in src/lib/api.ts. All API requests are authenticated using JWT tokens stored in localStorage.