Frontend client for CureLink, built with React and Vite.
- React 19
- Vite
- React Router
- Axios
- Tailwind CSS
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Open the local URL shown by Vite.
- npm run dev: start local development server
- npm run build: build production assets
- npm run preview: preview production build
- npm run lint: run ESLint checks
- src/components: reusable UI and feature components
- src/components/dashboards: dashboard pages by role
- src/components/AppointmentView: appointment workflow pages
- src/contexts: shared React contexts
- src/api.js: API request setup
The frontend expects the backend API to be running from the server project. Update API base URL configuration in src/api.js as needed for your environment.
- Use environment-based API URLs.
- Build with npm run build and serve static files via CDN or web server.
- Ensure CORS and cookie settings match deployed domains.