Skip to content

A Healthlane Hospital Management System built with FastAPI (backend), React (frontend), and PostgreSQL. Features secure auth, appointment booking/management, role-based dashboards for patients/doctors, and responsive UI. Ideal for efficient hospital operations.

License

Notifications You must be signed in to change notification settings

blackwatermelon0000/Healthlane

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ HealthLane – Hospital Management System

HealthLane is a modern, full-stack hospital management system designed to simplify patient management, doctor appointments, scheduling, and medical workflow.

This project includes a FastAPI backend, React.js frontend, and PostgreSQL database, making HealthLane fast, secure, and scalable.

πŸš€ Tech Stack (HealthLane) Backend (HealthLane API)

FastAPI

Uvicorn

SQLAlchemy

PostgreSQL

Pydantic

bcrypt + passlib

python-jose (JWT)

pgcrypto (for doctor secret key hashing)

Frontend (HealthLane Web App)

React.js

Vite

Axios

React Router

Tailwind CSS

Lucide-React

πŸ“Œ Features of HealthLane πŸ‘¨β€βš•οΈ Doctor Features

Secure login with secret registration key

View & manage appointments

Update appointment status

Add diagnosis/results

Access patient visit history

Update personal doctor profile

πŸ‘€ Patient Features

Register & login

Book an appointment with available doctors

View past & upcoming appointments

Cancel appointments

Edit patient profile

Clean dashboard with useful stats

πŸ›  System Features

JWT authentication

Password hashing (bcrypt)

Secure API communication

Modular component design

Protected routes

Fully responsive UI

πŸ“‚ HealthLane Project Structure Backend – healthlane-api backend/ │── app/ β”‚ β”œβ”€β”€ crud/ β”‚ β”œβ”€β”€ routers/ β”‚ β”œβ”€β”€ models.py β”‚ β”œβ”€β”€ schemas.py β”‚ β”œβ”€β”€ database.py β”‚ β”œβ”€β”€ utils.py β”‚ └── main.py β”‚ │── full_database.sql │── setup_config.sql │── requirements.txt

Frontend – healthlane-client frontend/ │── src/ β”‚ β”œβ”€β”€ api/ β”‚ β”œβ”€β”€ components/ β”‚ β”œβ”€β”€ pages/ β”‚ β”œβ”€β”€ App.jsx β”‚ β”œβ”€β”€ main.jsx β”‚ └── index.css β”‚ │── vite.config.js │── package.json

πŸ—ƒ HealthLane Database Overview Tables

patients

doctors

appointments

config (stores hashed secret key using pgcrypto)

Relationships

1 doctor β†’ many appointments

1 patient β†’ many appointments

Each appointment links a doctor + patient

πŸ” HealthLane Authentication Flow

User logs in

Backend validates credentials

JWT token is generated

Frontend stores token

Axios adds token to all requests

Protected routes validate JWT

πŸ§ͺ Core API Endpoints (HealthLane API) Auth POST /api/auth/login/patient POST /api/auth/login/doctor POST /api/auth/register/patient POST /api/auth/register/doctor GET /api/auth/me

Appointments POST /api/appointments/ GET /api/appointments/my PUT /api/appointments/{id} DELETE /api/appointments/{id}

Doctors GET /api/doctors GET /api/doctors/me PUT /api/doctors/me

Patients GET /api/patients/me PUT /api/patients/me

🧰 How to Run HealthLane Locally Backend (HealthLane API) cd backend pip install -r requirements.txt uvicorn app.main:app --reload

Frontend (HealthLane Client) cd frontend npm install npm run dev

πŸ“· Screenshots (Optional for HealthLane)

Create a folder:

/screenshots β”œβ”€β”€ healthlane-login.png β”œβ”€β”€ healthlane-dashboard.png └── healthlane-appointments.png

🎯 Future Enhancements for HealthLane

Admin portal

Doctor availability scheduling

Automatic email reminders

Patient medical history records

PDF report generation

πŸ“ License (Optional)

Let me know if you want:

MIT

All Rights Reserved

Custom restrictive license

Private repository settings

About

A Healthlane Hospital Management System built with FastAPI (backend), React (frontend), and PostgreSQL. Features secure auth, appointment booking/management, role-based dashboards for patients/doctors, and responsive UI. Ideal for efficient hospital operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.4%
  • CSS 18.4%
  • Python 10.9%
  • PLpgSQL 3.2%
  • HTML 0.1%