The Blood Donation Portal is a web-based application designed to connect blood donors with those in need. This platform provides an easy-to-use interface for donors to register, find blood donation camps, and access essential information about blood donation.
- Donor Registration: Users can register as blood donors.
- Find Blood Donors: Search for donors based on blood group and location.
- Blood Donation Facts: Learn important information about blood donation benefits and processes.
- Upcoming Blood Camps: View and register for blood donation events.
- Secure Authentication: Implements security configurations for user authentication.
- Backend: Java (Spring Boot)
- Frontend: HTML, CSS, JavaScript (Thymeleaf for templating)
- Database: MySQL
- Security: Spring Security
BloodDonationPortal/
│── src/
│ ├── main/java/com/blooddonation/blood_donation/
│ │ ├── config/ # Security Configuration
│ │ ├── controller/ # Controllers (Auth, Donor, BloodCamp)
│ │ ├── model/ # Entity Models (Donor, BloodCamp)
│ │ ├── repository/ # Repository Interfaces (JPA)
│ │ ├── service/ # Business Logic Layer
│ │ ├── BloodDonationApplication.java
│ ├── resources/
│ │ ├── static/ # Static files (CSS, JS, images)
│ │ ├── templates/ # Thymeleaf Templates
│ │ ├── application.properties # Database and application config
│── test/ # Unit and Integration Tests
│── pom.xml # Maven Dependencies
The application uses a MySQL database with tables for:
- Donors (id, name, blood group, contact, location, last donation date)
- Blood Camps (id, name, location, organizer, contact, date)
- Users (for authentication and role-based access control)
- Java 11+
- Maven
- MySQL Server
- Clone the repository:
git clone https://github.com/yashhashhrrreee/Blood-Donation-Portal.git cd blood-donation-portal - Configure Database:
- Update
src/main/resources/application.propertieswith MySQL credentials.
- Update
- Build and Run the Application:
mvn clean install mvn spring-boot:run
- Access the Application:
Open
http://localhost:8080in your browser.
- Implement REST API for better scalability.
- Enable email notifications for registered donors.
- Improve UI with modern frontend frameworks.
This project is open-source and available under the MIT License.
- Yashashree S Bedmutha - Developer
For any issues or suggestions, reach out to yashashree.bedmutha@gmail.com.
