DocPrescribe is a full-stack web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js) that allows doctors to digitally write and manage prescriptions for patients. The app provides a simple and intuitive interface for doctors to log in , create prescriptions, and store them securely.
- Frontend: React.js , Axios, react-toastify, html2pdf.js, react-bootstrap , react-router-dom
- Backend: Node.js, Express.js, bcrypt
- Database: MongoDB (with Mongoose)
- Authentication: JWT , HTTP-Only Cookies
Live: DocPrescribe.com
-
Doctor Registration and Login
Secure authentication system allowing doctors to create an account and log in. -
Create and Save Prescriptions
Doctors can write prescriptions including patient info, diagnosis, and medicines. These can be saved for future reference. -
Medicine Auto-Suggestions
Auto-complete feature for medicine names during input to improve accuracy and speed. -
Print and Download as PDF
Prescriptions can be printed or downloaded as PDF for record-keeping or sharing. -
Prescription History
Doctors can access previously saved prescriptions in their dashboard. -
Responsive User Interface
Clean and responsive UI designed for both desktop and mobile devices.
POST /auth/register→ Register a new userPOST /auth/login→ Log in a user
POST /prescription/add→ Create a new prescriptionGET /prescription→ Get all prescriptions
GET https://rxnav.nlm.nih.gov/REST/approximateTerm.json?term=...→ Fetches medicine name suggestions from RxNav API
1. Clone This Repo
git clone https://github.com/Prabathunni/DocPrescribe.git2. Setup Backend
change directory and install dependencies
cd backend npm installcreate .env file in backend with values
PORT=5000 MONGO_URI=your_mongodb_uri JWT_SECRET=your_secretstart backend
npm run dev
3. Setup Frontend
cd frontend npm install npm run dev
Created by Prabath P U
-LinkedIn: linkedin.com/in/prabath77
-Email: prabathunni826@gmail.com