Medify is a React + Vite web app for discovering medical centers by location and booking an appointment slot.
It includes:
- Home page with multiple marketing/feature sections (Hero, Carousel, Specialisation, etc.)
- Hospital listing page to search and view available medical centers and book a time slot
- My bookings page to view saved bookings (stored in
localStorage)
- React (Vite)
- React Router
- Material UI (MUI) + Emotion
- Swiper (carousel)
- Deployed-ready for Vercel (SPA rewrite configured)
/— Home/hospitals— Hospital listing + booking slots/my-bookings— View saved bookings
Medical centers are fetched from:
https://meddata-backend.onrender.com/data?state=<state>&city=<city>
Bookings are saved locally in the browser using localStorage under the key: bookings.
npm installnpm run devVite will print a local URL (commonly http://localhost:5173).
npm run buildnpm run previewThis repo includes a vercel.json rewrite so React Router routes work on refresh (SPA fallback to /).
- The UI is component-driven under
src/components. - Booking persistence uses the browser’s
localStorage, so bookings are per-device/per-browser.
src/pages— route pages (HomePage,HospitalListing,Booking)src/components— UI sections and reusable componentssrc/context—HospitalContextProviderfor fetched results and booking storage