BloodConnect is a comprehensive, full-stack blood donation platform that bridges the gap between blood donors and those in need. Built with modern web technologies including React, TypeScript, Node.js, and MongoDB, this platform provides a seamless experience for managing blood donations, emergency requests, and blood bank operations.
The platform features a comprehensive emergency management system with severity-based prioritization, real-time notifications for urgent blood requirements, and smart donor matching using blood type compatibility algorithms. Security is ensured through OTP-based email verification for account activation and a complete password reset workflow.
BloodConnect integrates SSLCommerz payment gateway supporting bKash, Nagad, and credit/debit cards, and provides multi-stakeholder dashboards with role-based access for donors, hospitals, and administrators. The system includes geolocation-based services for finding nearby donors, donation history tracking, and inventory management for blood banks.
Developed by Mhr Rony, BloodConnect transforms traditional blood donation processes with digital solutions that reduce response time, increase accessibility, and improve coordination between hospitals and donors, ultimately saving lives through technology-enabled community action.
Client:
Healthcare Initiative
Industry:
Healthcare Technology
Duration:
4 Months
URL:
Watch the full project demo and walkthrough
Challenge
The primary challenge was addressing the inefficiencies in traditional blood donation systems that often result in delayed responses during emergencies and difficulties in matching donors with recipients.
Emergency Management
Implementing a comprehensive emergency management system with real-time prioritization based on severity levels (critical, severe, moderate, low) with automatic priority score assignment. The system needed to handle time-sensitive emergency requests while maintaining data privacy.
Authentication & Security
Designing secure authentication workflow with OTP-based email verification using Mailgun for account activation, creating complete password reset system with email OTP confirmation, and establishing enterprise-grade security measures including JWT authentication, password hashing with bcrypt, input validation, rate limiting, and data encryption.
Smart Matching & Payments
Developing smart donor matching algorithm considering blood type compatibility and geolocation proximity, integrating SSLCommerz payment gateway supporting multiple payment methods (bKash, Nagad, Rocket, credit/debit cards, internet banking), and ensuring secure payment processing with PCI DSS compliance.
Platform Architecture
Building multi-stakeholder platform with distinct interfaces for blood donors, hospitals, administrators, and moderators with role-based access control. Implementing real-time notifications for urgent requests, geolocation-based services for finding donors within specific radius, comprehensive admin dashboard with emergency monitoring and payment management, and creating intuitive mobile-first interface accessible to users with varying technical literacy.
System Design
Frontend Architecture
The frontend layer is built with React 18 and TypeScript utilizing Vite for fast development builds, Tailwind CSS for responsive design, shadcn/ui component library for accessible UI, React Router for navigation, and custom hooks for reusable business logic.
Backend Architecture
The backend layer implements RESTful API architecture using Node.js and Express.js featuring JWT authentication, role-based middleware, MongoDB with Mongoose ODM, Mailgun integration for OTP verification, SSLCommerz SDK for payments, bcryptjs for password hashing, express-validator for input validation, and helmet middleware for security.
Database Schema
The database includes User collection with role definitions and location data, Emergency Request collection with patient and hospital details, Blood Request collection tracking donation lifecycle, Payment collection with transaction history, and Donation collection maintaining complete records.
Emergency Management
Features automatic prioritization based on severity and timeline, color-coded urgency levels with countdown timers, comprehensive request details modal, status management system, direct communication tools, and donor alert broadcasting for critical emergencies.
Payment Integration
The payment system integrates SSLCommerz for sandbox and production environments, supports multiple donation categories, implements secure payment flow with server validation, provides real-time transaction monitoring, handles payment callbacks, and maintains comprehensive payment history.
Security & Performance
The system employs geolocation-based matching, rate limiting on API endpoints, environment-based configuration, HTTPS enforcement, SQL injection prevention, and comprehensive monitoring with error logging and performance tracking.
Results
Successfully delivered a production-ready blood donation platform that effectively transforms traditional blood donation processes into efficient digital workflows.
Emergency Management System
Implemented a comprehensive emergency management system with real-time monitoring, severity-based prioritization, color-coded urgency indicators with countdown timers, complete emergency details modal, status management workflow, direct communication integration, and donor alert broadcasting for critical emergencies.
Authentication & Security
Secure authentication with OTP-based email verification using Mailgun, complete password reset workflow, password visibility toggle, JWT authentication with refresh token rotation, and multi-layer security validation preventing unauthorized access.
Smart Donor Matching
Blood type compatibility algorithms supporting universal donor relationships, geolocation-based matching connecting donors within 5km radius, automatic notifications for urgent requests, and comprehensive donor profiles with availability status.
Payment Integration
SSLCommerz payment gateway supporting bKash, Nagad, Rocket, credit/debit cards, and internet banking. Features include secure payment flow with PCI DSS compliance, real-time transaction monitoring, payment history tracking, anonymous donation option, and admin payment dashboard with financial analytics.
Multi-Stakeholder Platform
Role-based interfaces for donors (registration, history, availability), hospitals (emergency requests, status tracking), administrators (platform oversight, user management, analytics), and moderators (community management, content moderation).
Admin Dashboard
Real-time statistics, emergency management with priority display, payment management with transaction monitoring, user management with role assignment, settings configuration, system logs monitoring, and database backup automation.
Inventory Management
Blood bank stock tracking with unit counts, low stock alerts, expiration date management, multi-bank coordination, and comprehensive inventory reports with analytics.
Performance & Reliability
Responsive design with Tailwind CSS for mobile, tablet, and desktop. Sub-200ms average API response times, efficient state management, code splitting and lazy loading. 99.9% uptime with automated health checks, error logging, database backups, and disaster recovery procedures.