Skip to content

MERN healthcare platform with role-based access (Admin/Doctor/Patient), handling 100+ daily real-time bookings. Integrated Razorpay & COD, and secured authentication with JWT, rotating refresh tokens, and HTTP-only cookies.

Notifications You must be signed in to change notification settings

ayushpanwar2014/Prescripto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typing SVG

Prescripto

Full-Stack Developer | Mar – Jun 2025 GitHub Repository: https://github.com/ayushpanwar2014/Prescripto | Remote


Tech Skills 🛠️

Tech Stack

Zod TailwindCSS Cloudinary REST APIs CI/CD Agile Microservices DBMS DSA

Overview

Prescripto is a MERN stack healthcare platform designed to handle over 100 real-time bookings per day. It improves appointment workflow by 50% through role-based access for Admin, Doctor, and Patient. The platform integrates Razorpay and COD support for flexible payments, and employs JWT authentication with rotating refresh tokens and HTTP-only cookies, reducing unauthorized access by 80%. Additionally, Redis caching and Cloudinary integration enhance performance and media handling.


Features

  • Role-based access control (Admin / Doctor / Patient)
  • Real-time appointment bookings
  • Razorpay & COD payment integration
  • Secure authentication with JWT, rotating refresh tokens, HTTP-only cookies
  • Redis caching for optimized performance
  • Media management with Cloudinary
  • CRUD operations for users, appointments, and doctors
  • RESTful API endpoints for frontend consumption

Environment Variables

The backend requires the following environment variables in a .env file:

PORT =
MONGODB_URL =
CLOUDINARY_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_API_SECRET =
ADMIN_EMAIL =
ADMIN_PASSSWORD =
JWT_SECRET =
RAZORPAY_KEYID =
RAZORPAY_KEY_SECRET = 
CURRENCY =
FRONTEND_URL = 
ADMIN_URL = 
REDIS_PASSWORD = 
REDIS_HOST = 
REDIS_PORT = 

The Frontend requires the following environment variables in a .env file:

VITE_BACKEND_URL = 
VITE_RAZORPAY_KEYID = 

The Admin requires the following environment variables in a .env file:

VITE_BACKEND_URL = 

Installation

  1. Clone the repository:
git clone https://github.com/ayushpanwar2014/Prescripto.git
  1. Install backend dependencies:
cd backend
npm install
  1. Run the backend server:
npm start
  1. Set up frontend in /frontend and /admin folders (React apps) and run with npm start.

Backend Dependencies

  • argon2
  • cloudinary
  • cookie-parser
  • cors
  • dotenv
  • express
  • express-rate-limit
  • helmet
  • hpp
  • jsonwebtoken
  • mongoose
  • morgan
  • multer
  • razorpay
  • redis
  • zod

License

MIT License

About

MERN healthcare platform with role-based access (Admin/Doctor/Patient), handling 100+ daily real-time bookings. Integrated Razorpay & COD, and secured authentication with JWT, rotating refresh tokens, and HTTP-only cookies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published