This repository contains the backend code
- User can search a blood donor; Search parameter: name, blood group, division, district, availability
- User can search an ambulance or oxygen cylinder; Search parameter: name division, district
- User can show the live bed status of all the hospitals of Bangladesh and filter the hospitals according to hospital name, division, district, availability, last update
We have an admin side built in React from where admin can perform CRUD operation for ambulance and oxygen cylinder.
- NodeJS from 10 to 13 (Backend)
Clone the repository from GitHub.
$ git clone https://github.com/shovito66/bloodBank.git
-
Credential Documentation [Restricted]
Variable Name Value MONGO_URL JWT_PRIVATE_KEY Private key of your App that is used to sign the JWTs. EMAIL_HOST bbank.absbpeople.com EMAIL_USER admin@bbank.absbpeople.com EMAIL_PASS EMAIL_PORT 465 EMAIL_FROM "ABSB-Spondon" bbank@absbpeople.com
Add this parameters to your create.env
file.
$ npm install
By default, npm install will install all modules listed as dependencies in package.json
$ nodemon
Test the API from postman using https://absb.herokuapp.com/api/ at your browser
- API Documentation [Restricted]
JWT Token is under the x-auth-token
variable of the req.header
section