Skip to content

SanjayUG/HospitAll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HospitAll - Hospital Management System

HospitAll is a modern, full-stack hospital management system built with React and Node.js. It provides a comprehensive solution for managing hospital operations, including patient management, operation theatre scheduling, pharmacy management, and emergency response.

🌟 Features

Frontend

  • Modern, responsive UI with Material-UI components
  • Dark theme with attractive color scheme
  • Real-time updates and notifications
  • Protected routes and authentication
  • Role-based access control

Backend

  • RESTful API architecture
  • Secure authentication with JWT
  • MongoDB database integration
  • Role-based authorization
  • Real-time data synchronization

πŸ—οΈ Project Structure

HospitAll/
β”œβ”€β”€ frontend/               # React frontend application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ contexts/      # React context providers
β”‚   β”‚   β”œβ”€β”€ pages/        # Page components
β”‚   β”‚   β”œβ”€β”€ routes.jsx    # Application routes
β”‚   β”‚   └── theme.js      # Material-UI theme configuration
β”‚   └── package.json
β”‚
└── backend/               # Node.js backend application
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ controllers/  # Route controllers
    β”‚   β”œβ”€β”€ models/       # Database models
    β”‚   β”œβ”€β”€ routes/       # API routes
    β”‚   β”œβ”€β”€ middleware/   # Custom middleware
    β”‚   └── index.js      # Application entry point
    └── package.json

πŸš€ Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • MongoDB
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/HospitAll.git
cd HospitAll
  1. Install frontend dependencies:
cd frontend
npm install
  1. Install backend dependencies:
cd ../backend
npm install
  1. Create a .env file in the backend directory:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/HospitAll
JWT_SECRET=your_jwt_secret

Running the Application

  1. Start the backend server:
cd backend
npm start
  1. Start the frontend development server:
cd frontend
npm run dev

The application will be available at:

πŸ“‹ Features by Module

Dashboard

  • Overview of hospital statistics
  • Real-time patient monitoring
  • Quick access to all modules

Token Management

  • Patient queue management
  • Token generation and tracking
  • Priority-based scheduling

Operation Theatre

  • OT scheduling and management
  • Surgery tracking
  • Resource allocation

Pharmacy

  • Drug inventory management
  • Stock tracking
  • Expiry date monitoring
  • Supplier management

Emergency

  • Emergency alert system
  • Real-time response tracking
  • Priority-based handling

πŸ”’ Security Features

  • JWT-based authentication
  • Role-based access control
  • Secure password hashing
  • Protected API endpoints
  • Input validation and sanitization

🎨 UI/UX Features

  • Dark theme with modern color scheme
  • Responsive design for all devices
  • Intuitive navigation
  • Real-time updates
  • Error handling and notifications

πŸ› οΈ Technologies Used

Frontend

  • React
  • Material-UI
  • React Router
  • Axios
  • Context API

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • bcrypt

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Authors

  • Your Name - Initial work

πŸ™ Acknowledgments

  • Material-UI for the component library
  • MongoDB for the database
  • All contributors who have helped shape this project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages