Skip to content

πŸ’‰ A web-based Blood Bank Management System built using Django. Allows users to register as donors, request blood, and manage operations through an admin panel.

License

Notifications You must be signed in to change notification settings

varshitha127/Bloodbank_Project

Repository files navigation

🩸 Blood Bank Management System

Django Python License Deploy on Render

A web–based Blood Bank Management System built with Django that helps users find and request blood, manage donor information, and simplify blood inventory tracking. This project aims to streamline the blood donation process by providing a user–friendly platform.


πŸ“‹ Demo

Demo (Live): [Demo Link (https://bloodbank-project.onrender.com/ )]

(Demo screenshot) Screenshot 2025-05-31 111909

Screenshot 2025-05-31 111933

Screenshot 2025-05-31 111944

Screenshot 2025-05-31 112005

Screenshot 2025-05-31 112029


πŸš€ Features

  • πŸ§‘β€πŸ€β€πŸ§‘ Register as a Donor
  • 🩸 Search Available Blood Types
  • πŸ“‹ Request for Blood
  • πŸ—ƒοΈ Admin Panel for Managing Donors and Requests
  • πŸ’» Frontend: HTML, CSS, JavaScript
  • βš™οΈ Backend: Django (Python) + SQLite (local) / PostgreSQL (Render)

πŸ—οΈ Tech Stack

Layer Technology
Frontend HTML, CSS, JavaScript
Backend Django (Python)
Database SQLite (local) / PostgreSQL (Render)
Deployment Render (via render.yaml)

πŸ“‚ Project Structure

BBMS-github/
β”œβ”€β”€ mysite/                  # Main Django project folder
β”‚   β”œβ”€β”€ settings.py
β”‚   β”œβ”€β”€ urls.py
β”‚   └── wsgi.py
β”‚
β”œβ”€β”€ polls/                   # App: business logic and views
β”‚   β”œβ”€β”€ admin.py
β”‚   β”œβ”€β”€ models.py
β”‚   β”œβ”€β”€ views.py
β”‚   β”œβ”€β”€ urls.py
β”‚   └── templates/
β”‚
β”œβ”€β”€ static/                  # Static assets (CSS, JS, images)
β”œβ”€β”€ staticfiles/             # Collected static files for deployment
β”œβ”€β”€ templates/               # Shared HTML templates
β”œβ”€β”€ db.sqlite3               # SQLite database (local only)
β”œβ”€β”€ manage.py                # Django CLI
β”œβ”€β”€ render.yaml              # Render deployment configuration
β”œβ”€β”€ requirements.txt         # Python dependencies
└── README.md                # Project documentation

πŸš€ Deploying on Render

  1. Fork/Clone this repository
  2. Connect your repo to Render
  3. Render will auto–detect the render.yaml and set up your web service and database.
  4. Set the following environment variables in Render Dashboard:
    • CLOUDINARY_CLOUD_NAME
    • CLOUDINARY_API_KEY
    • CLOUDINARY_API_SECRET
    • SECRET_KEY (auto–generated or set your own) – DEBUG (set to False for production)
  5. Deploy! Render will run migrations and collect static files automatically.

πŸ› οΈ Local Development

  1. Clone the repository:
    git clone https://github.com/varshitha127/Bloodbank_Project.git
    cd Bloodbank_Project
  2. Create a .env file in the project root (for local environment variables):
    DEBUG=True
    SECRET_KEY=your-local-secret-key
    CLOUDINARY_CLOUD_NAME=your_cloud_name
    CLOUDINARY_API_KEY=your_api_key
    CLOUDINARY_API_SECRET=your_api_secret
    DATABASE_URL=sqlite:///db.sqlite3
  3. Install dependencies:
    pip install –r requirements.txt
  4. Run migrations and start the server:
    python manage.py migrate
    python manage.py runserver

πŸ“¦ Environment Variables

  • SECRET_KEY: Django secret key (auto–generated on Render or set locally)
  • DEBUG: Set to False in production (Render) or True locally
  • CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, CLOUDINARY_API_SECRET: For media storage (Cloudinary)
  • DATABASE_URL: Provided by Render (PostgreSQL) or use SQLite locally

🀝 Contributing

Contributions are welcome! Please fork the repository, create a new branch (e.g., git checkout –b feature/your-feature), commit your changes, and then push your branch (e.g., git push origin feature/your-feature). Then, open a Pull Request.


πŸ“„ License

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

About

πŸ’‰ A web-based Blood Bank Management System built using Django. Allows users to register as donors, request blood, and manage operations through an admin panel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published