A web application for managing blood donations and transfusions. Users can register as donors, volunteers, or admins to help manage and facilitate blood donations.
- User roles: Admin, Volunteer, Donor (default)
- Manage blood donation requests
- Track blood inventory
- Schedule donation appointments
- Notifications for upcoming donation drives
- React
- Tailwind CSS
- Node.js
- Express.js
To run this project locally, follow these steps:
-
Clone the Repository:
git clone /~https://github.com/your-repo/blood-bank-website.git cd blood-bank-website
-
Install Dependencies: Navigate to both the frontend and backend directories and install the required dependencies.
Frontend:
cd frontend npm install
Backend:
cd backend npm install
-
Set Up Environment Variables: Create a
.env
file in thebackend
directory and add the following environment variables:MONGODB_URI=your_mongodb_connection_string PORT=5000 JWT_SECRET=your_jwt_secret
-
Run the Backend Server:
cd backend npm start
The backend server will start running on
http://localhost:5000
. -
Run the Frontend Server: Open a new terminal window and navigate to the
frontend
directory:cd frontend npm start
The frontend server will start running on
http://localhost:3000
. -
Access the Application: Open your web browser and go to
http://localhost:3000
to see the application in action.