Recent Posts

Understanding XML: Full Form, Uses, and Benefits

Understanding XML: Full Form, Uses, and Benefits

Are you diving into the world of web development? If so, you've likely encountered terms like HTML and XML. While both play a role in building websites, they have distinct purposes. This blog post unpacks XML, exploring its full form, uses, benefits, and how it...

Building a Robust Rest API for a Life-Saving Blood Management System

by | Mar 14, 2023

Building a Robust Rest API for a Life-Saving Blood Management System

Overview:

This project will involve building the backend Rest API for a blood management system in the U.K. As part of this project you will use PostGresSQL and MongoDb to store and cache records.

Tech Stack: Backend – express-javascript, express-typescript, flask-python

Why you should build it:

The Blood Management System project in SkillReactor is an excellent opportunity for users to gain practical experience in building a modern, scalable, and secure REST API. This project involves building the backend API for a blood management system in the UK, which includes using PostGresSQL and MongoDB to store and cache records. By completing this project, users will gain valuable experience in building a robust backend system that can handle large amounts of data, process requests quickly and efficiently, and store data securely.

Completing the Blood Management System project can benefit users in several ways. First, it allows users to gain practical experience in building a REST API, which is a highly desirable skill in the job market. Users will learn about data storage, caching, and security best practices, as well as how to process requests and handle errors in a RESTful architecture. Moreover, completing this project can be a great way to improve coding skills, learn about modern web development technologies, and create a portfolio piece that can be used to showcase skills to potential employers. Overall, the Blood Management System project in SkillReactor is an excellent opportunity for users to improve their coding skills, gain practical experience, and build a modern, scalable, and secure REST API.

Project Tasks:

Task BBMS1: Fetching blood donations using PostGres SQL.
In this task you will be connecting and retrieving items from a PostGres SQL database.You will fetch each Item by ID as part of a Get endpoint and then return the item to the user.

Task BBMS2: Return Blood filter by hospital.
In this task you will be creating a new endpoint that returns multiple objects. Your endpoint will return all blood donations for a given hospital.

Task BBMS3: Update SQL Record.
In this task you will create an endpoint that allows a user to edit and update any fields they would like for a blood donation.

Task BBMS4: Deleting Donations.
In this task you will be deleting donations by id.

Task BBMS5: Create multiple retrieve and filter endpoints.
In this task you will be creating two endpoints. One to return the records for a set blood type and another to return blood donated after a certain time.

Task BBMS6: Keeping the blood donation records clean.
In this task you will be creating and endpoint that cleans the blood donations.\n It will work by removing all the blood donations that have passed a given expiry date.

Task BBMS7: Caching in a NoSQL database.
In this task you will be caching a donation for an emergency. The donation will be cached using MongoDB.

Task BBMS8: Caching the most optimal record.
In this task you will update your work from the previous task to always update the record with lowest expiry date.

Task BBMS9: Retrieving an Emergency
In this task you will create a simple GET endpoint that returns the emergency from MongoDB.

Task BBMS10: Completing an Emergency
In this task you will handle the completion of an emergency. Meaning the blood has been used.

Task BBMS11: Cancelling an Emergency.
In this task you will handle the cancellation of an emergency. Meaning the blood is no longer needed and can be moved back to the SQL database.

Task BBMS12: Overall information endpoint.
In this task you will be creating an info endpoint that gives the user an overview of all the blood donations and emergencies.

Task BBMS13: Donating blood.
In this task you will create a POST endpoint for entering blood donations.

Task BBMS14: User info endpoint.
In this task you will be creating a user info endpoint. This endpoint will return all original data for a blood donation but will also include information about the person who donated it.

Task BBMS15: Batch functions run to clean blood donations.
In this task you will be creating a simple batch function that make a call to the /clean-blood endpoint. This will remove all expired blood from a donation database.

Task BBMS16: Batch function runs to alert hospital of emergency.
In this task you will be alerting hospitals of incoming emergencies.

0 Comments

Vertical Side Banner Ad

AI Proof Your Career

Logo 1 Logo 2 Logo 3
Sticky Footer Ad Banner