Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

<<<<<<< HEAD

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

πŸ₯ Healthcare Patient Management System

License: MIT Contributions Welcome

A secure, full-stack hospital management web application designed to streamline patient record handling and role-based operations. Built with Flask (Python) for the backend and React.js + Tailwind CSS + TypeScript for the frontend, it supports multiple roles such as Admin, Nurse, and Receptionist, with secure JWT authentication and MongoDB integration.


πŸš€ Features

  • πŸ” JWT-based Authentication & Authorization

    • Secure login system for Admin, Nurse, and Receptionist roles
    • Role-based access control (RBAC) for protected routes
    • Configurable password hashing with bcrypt
    • Rate limiting for security
  • πŸ₯ Patient Management (CRUD)

    • Create, read, update, and delete patient records
    • Input validation and error handling
    • Advanced search with pagination
    • Data compression for better performance
  • πŸ” Search with Pagination

    • Efficient server-side filtering of patient records with indexed queries
    • Supports pagination for large datasets
    • Real-time search capabilities
  • πŸ“Š Admin Dashboard & Analytics

    • Admin-only interface to view all registered users
    • Patient demographics and disease distribution analytics
    • Real-time charts and statistics
    • Excludes sensitive info like passwords and MongoDB _id
  • 🎨 Frontend

    • Clean and responsive UI using React and Tailwind CSS
    • Authentication-aware navigation and route protection
    • Progressive Web App features
    • Optimized performance with React Query
  • πŸ›‘οΈ Security & Performance

    • Environment-based configuration
    • Health check endpoints
    • Comprehensive error handling
    • Database connection monitoring
    • Rate limiting and compression

πŸ› οΈ Tech Stack

Frontend

  • React.js
  • Tailwind CSS
  • Axios
  • React Router DOM

Backend

  • Python (Flask)
  • Flask-JWT-Extended
  • Flask-CORS
  • Flask-PyMongo
  • Flask-Limiter (Rate Limiting)
  • Flask-Compress (Data Compression)
  • Gunicorn (Production Server)

Database

  • MongoDB (NoSQL)
  • Indexing for optimized search and filtering

🧰 Installation & Setup

πŸ“Œ Prerequisites

  • Python 3.x
  • Node.js + npm
  • MongoDB running locally or cloud (e.g., MongoDB Atlas)

βš™οΈ Backend Setup

cd Project/healthcare_patient_system
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py

Flask app will start at: http://localhost:5000

Environment Configuration: Copy env.example to .env and configure your environment variables:

cp env.example .env

🌐 Frontend Setup

cd Project/healthcare-frontend
npm install
npm start

React app will start at: http://localhost:3000


πŸ§ͺ API Endpoints (Sample)

Method Endpoint Description Protected
POST /api/login Login for all roles ❌
POST /api/patients Create patient record βœ…
GET /api/patients?page=1 Get patients with pagination βœ…
PUT /api/patients/:id Update patient details βœ…
DELETE /api/patients/:id Delete patient βœ…
GET /api/admin/users View all users (Admin only) βœ…
GET /api/health Health check endpoint ❌
GET /api/analytics/age Patient age distribution βœ…
GET /api/analytics/diseases Disease distribution βœ…

πŸ‘€ Roles & Access

Role Access Privileges
Admin Full access, manage users & patients
Nurse View & edit patient data
Receptionist Add/view patient entries

🧠 Project Structure

πŸ“¦ project-root
β”œβ”€β”€ backend
β”‚   β”œβ”€β”€ app.py
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ models/
β”‚   └── utils/
β”œβ”€β”€ frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── App.js
β”œβ”€β”€ README.md


🧩 Future Improvements

  • βœ… Email verification & password reset
  • βœ… Deploy on Render/Netlify + MongoDB Atlas
  • ⏳ Role-based analytics dashboard
  • ⏳ Export patient data to PDF/Excel
  • ⏳ Add doctor role and appointment module

🏁 Conclusion

This project demonstrates a full-stack solution for healthcare systems with secure authentication, clean UI, and scalable architecture. Perfect for hospitals, clinics, or medical institutions.


πŸ“¬ Contact

Feel free to connect:

🀝 Acknowledgments

Special thanks to:

  • The professors for their guidance
  • The open-source community for inspiration
  • Project collaborators for their valuable input

Created with ❀️ by a passionate programmer
RAUNAK KUMAR JHA

747c19d3bece2a64451adc470f5e733ff59a7e43

Releases

Packages

Contributors

Languages