Lifesaver: Blood Donation Management System Web App Using Mern Stack
Lifesaver: Blood Donation Management System Web App Using Mern Stack
Lifesaver: Blood Donation Management System Web App Using Mern Stack
Fig 5. Implementation
Algorithm: Here's a refined version of the Blood Bank Management System algorithm:
Step 1: Start
Step 2: User Interaction: Capture user action (login, register, donate, navigate, etc.)
if Yes: Proceed to next step
else No: End loop and close resources
Step 3: Authentication (Conditional): Required Action? (Donate, Register):
if Yes: Validate user credentials or JWT token.
Valid: Update state with user information and proceed.
Invalid: Display error message and restart loop.
else No: Skip to Routing.
Step 4: Routing: Analyze user request and extract URL path.
If found: Render corresponding component.
If not found: Display error message and restart loop.
Step 5: State Management: Dispatch actions to Redux store based on user interaction and routed component.
Update state objects in the store based on reducer logic (data modifications). Update UI elements to reflect
state changes.
Step 6: API Interaction (Conditional):
Data Needed? (Inventory levels, Donors):
if Yes: Send API requests based on route or action requirements. Success Response: Parse data and update
state. Error: Handle error and display user-friendly message. Continue without state update. else No: Skip to UI
Update.
Step 7: UI Update: Render updated UI components based on state changes and user interactions.
Step 8: Repeat Loop: Go back to step 1 and wait for next user interaction.
Step 9: End
IV. RESULTS AND DISCUSSION
"LifeSaver" was conceptualized as a donor-centric solution aimed at revolutionizing the blood donation
process, ensuring a streamlined and engaging experience for donors while optimizing blood bank operations.
This report delves into the achieved milestones and ongoing discussions centered around the donor-focused
elements of this innovative platform.