A web application that allows users to request blood donations or donate blood based on available requests. The platform includes an easy registration system, a role-based dynamic dashboard, and donor search functionality.
🔗 Live Site: Blood Bank Management System
🛠 Admin Credentials:
- Email:
admin@gmail.com
- Password:
123456
✅ User Registration & Authentication (Firebase)
✅ Create & View Blood Donation Requests
✅ Role-Based Dashboard (Admin, User, Volunteer)
✅ Admin & Volunteer Statistics & Blog Management
✅ Search for Donors Easily
✅ User Profile Management
✅ Dynamic API Using Express.js
✅ MongoDB Server for Data Storage
✅ Secure Payments Integration (Stripe)
- Frontend: React.js, Vite, Firebase Authentication
- Backend: Node.js, Express.js
- Database: MongoDB
- State Management & Queries: React Query
- Payment Gateway: Stripe
- UI Components: Tailwind CSS, Material Tailwind, Heroicons
- Editor: Jodit
This project relies on the following major dependencies:
react
- Frontend libraryreact-dom
- DOM bindings for Reactreact-router-dom
- Routing libraryreact-hook-form
- Form handlingaxios
- HTTP client for API requestsfirebase
- User authenticationsweetalert2
- Popup alertsreact-hot-toast
- Toast notificationsreact-icons
- Icon libraryreact-spinners
- Loading spinners@heroicons/react
- Heroicons for UI@material-tailwind/react
- UI components@tanstack/react-query
- Data fetching and caching@stripe/react-stripe-js
- Stripe payments integration@stripe/stripe-js
- Stripe JavaScript SDKhtml-to-text
- Convert HTML to plain textjodit & jodit-react
- Rich text editor
vite
- Fast build tooleslint & eslint plugins
- Code lintingtailwindcss
- CSS frameworkpostcss & autoprefixer
- CSS processing
Follow these steps to run the project locally:
git clone https://github.com/your-repo/blood-bank.git
cd blood-bank
2️⃣ Install Dependencies
npm install
3️⃣ Setup Environment Variables Create a .env file and add the required Firebase and MongoDB credentials:
MONGO_URI=your_mongodb_connection_string
FIREBASE_API_KEY=your_firebase_api_key
4️⃣ Start the Backend Server
npm start
5️⃣ Run the Frontend Navigate to the frontend directory and start the React app:
cd frontend
npm install
npm start