Medisyn is a React + Vite prototype with an Express/MongoDB backend for managing patient data.
- Node.js 18+
- npm 9+
- A running MongoDB instance (Atlas or local)
- Copy
.env.exampleto.env. - Update
MONGODB_URIwith your MongoDB connection string. - Adjust
PORTandVITE_API_BASE_URLif you are hosting the API somewhere other thanhttp://localhost:4000.
cp .env.example .env
# then edit .env
npm install
Run the API server (requires the .env values above):
npm run server
In a separate terminal, start the Vite dev server:
npm run dev
To refresh the Mongo collection with the default AESPA patients, run:
npm run seed -- --reset
By default the frontend proxies requests to the API at the URL specified by VITE_API_BASE_URL.
Open the new settings menu (sliders icon in the header) to enable colour-blind friendly palettes, high contrast mode, dyslexia-friendly typography, reduced motion, or larger default text. Preferences persist locally in localStorage and apply instantly across the interface.
npm run build
The bundled assets are output to dist/.