React + Vite frontend for MedSync AI. Provides auth, dashboard, medication management, notifications, AI agents, report upload/chat, and Google Calendar connect.
cd client
npm install
npm run dev # http://localhost:5173Run the backend from ../server first (npm run dev) so API calls and Socket.IO connect.
Create client/.env and point to your backend/OAuth endpoints:
VITE_API_BASE_URL=http://localhost:8080
VITE_SOCKET_URL=http://localhost:8080
VITE_GOOGLE_OAUTH_LOGIN=http://localhost:8080/api/oauth/login
If you change backend ports or hostnames, update these values.
npm run dev– start Vite dev servernpm run build– production buildnpm run preview– preview the buildnpm run lint– eslint check
- Keep backend running while testing pages that call the API (login, meds, reports, agents).
- If you add endpoints, surface the base URL via envs (avoid hardcoded
http://localhost:8080). - Attach screenshots/GIFs to PRs for UI tweaks; add brief testing notes.