Skip to content

tarun-chennur/bloodbank-api

Repository files navigation

bloodbank-api

This is an API that allows hospitals to add blood samples and receivers to query/request for blood samples.

Authentication
JWT is used for authentication. An access token and refresh token is provided upon successfully logging in. Refresh tokens can be used to request for a new access token once they have expired.

Roles:

  1. Receiver
  2. Hospital

Servers
Access tokens can be used to make requests to the API (on PORT 3000). Login,registering and requesting for new access tokens can be done by hitting the authentication server (PORT 4000). While making any request to API server, include the access token under the 'Authorization' key in headers. Include refresh token under the 'Authorization' key in headers while requesting for new access token.

Start project

Install required packages:

npm i 

Run authentication server:

npm run devAuthStart 

Run API server:

npm run devStart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published