Prabathunni / DocPrescribe

Doctor Prescription Web Application

Home Page:https://docprescribe.onrender.com

Repository from Github https://github.comPrabathunni/DocPrescribeRepository from Github https://github.comPrabathunni/DocPrescribe

DocPrescribe - Doctor’s Prescription App (MERN Stack)

Description

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.

Tech Stack

  • 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

App Images

Live: DocPrescribe.com

Features

  • 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.

API Endpoints

Authentication

  • POST /auth/register → Register a new user
  • POST /auth/login → Log in a user

Prescription

  • POST /prescription/add → Create a new prescription
  • GET /prescription → Get all prescriptions

Medicine Suggestion (External API)

  • GET https://rxnav.nlm.nih.gov/REST/approximateTerm.json?term=... → Fetches medicine name suggestions from RxNav API

Installation

1. Clone This Repo

git clone https://github.com/Prabathunni/DocPrescribe.git

2. Setup Backend

change directory and install dependencies

cd backend
npm install

create .env file in backend with values

PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_secret

start 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

About

Doctor Prescription Web Application

https://docprescribe.onrender.com


Languages

Language:JavaScript 94.6%Language:HTML 3.3%Language:CSS 2.0%