Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🩸 Blood Bank Management System

A professional, web-based management system designed to coordinate blood donations, manage inventory, and handle hospital requests efficiently. This system uses a real-time stock update mechanism to ensure life-saving blood units are tracked accurately.


🚀 Key Features

  • Role-Based Access: Specialized dashboards for Admin, Donor, and Hospital roles.
  • Live Inventory Tracking: Real-time monitoring of stock levels for all 8 blood groups ($A\pm, B\pm, O\pm, AB\pm$) in milliliters (ml).
  • Automated Stock Sync:
    • Donations: Automatically increases inventory when a donor gives blood.
    • Requests: Deducts from stock upon administrative approval.
  • Request Management: Streamlined workflow to approve or reject blood requests from patients and hospitals.
  • Donor History: Complete logs of every donor's medical info and donation frequency.
  • Secure Authentication: Session-based login with password protection and role verification.

🛠️ Technical Stack

  • Backend: PHP 8.x (Procedural & Logic-driven)
  • Database: MySQL / MariaDB
  • Frontend: HTML5, CSS3 (Custom Theme), FontAwesome 6.4.2
  • Server: Optimized for Apache (XAMPP / WAMP / Linux)

📊 Database Architecture

The application is powered by a relational database named blood bank. Below are the primary tables:

Table Name Description
users Stores login credentials and role assignments (Admin/Donor/Hospital).
donors Contains detailed profiles including blood group and contact info.
blood_stock The central ledger for current blood volume (ml) per group.
blood_requests Tracks incoming requests, volume needed, and fulfillment status.
donations Logs historical data of every successful donation event.

⚙️ Installation & Setup

  1. Clone the Project:

    git clone [([(https://github.com/Sakil-Dev/Blood-bank-web.git)][(https://github.com/Sakil-Dev/Blood-bank-web.git)}
  2. Database Configuration:

    • Open phpMyAdmin.
    • Create a new database named blood bank.
    • Import the blood_bank(1).sql file found in the root directory.
  3. Connection Setup:

    • Open db_connect.php and verify your local server settings:
    $conn = mysqli_connect("localhost", "root", "your_password", "blood bank");
  4. Run the Application:

    • Move the project folder to your server's root (e.g., htdocs).
    • Open your browser and go to http://localhost/blood-bank-management/index.php.

🎨 UI/UX Design

The system features a custom Cyan & Crimson color palette designed for high visibility and professional medical aesthetics. It includes:

  • Interactive progress bars for blood stock.
  • Status badges (Pending, Approved, Rejected) for easy tracking.
  • Responsive sidebar navigation for seamless multitasking.

📄 License

Distributed under the MIT License. See LICENSE for more information.


Developed with ❤️ to save lives. If you find this project useful, please consider giving it a ⭐!


Screenshot

Login Page

login

Registration Page

Register

Dashboard Page

dashboard

Donor

donor

List of donations

donation records

Blood Request

blood request

Request History

request history

Blood Stock

6

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages