Platform that connects blood donors with blood recipients.There are many potential donors willing to donate blood but finding an appropriate donor during emergency situations is quite difficult. Due to lack of coordination between hospitals and blood bank millions of unit of blood is wasted. MedLinePro aims to connect organisations with the needy people.
The web app enables hospitals/NGOs to register and post their status of availability of blood of different blood groups. This information is stored in our server and displayed to users who need help. Users can register themselves and look at the information posted by the organisations and request blood directly.
Refer to https://nodejs.org/en/ to install nodejs
git clone https://github.com/devil-slayer1024/HackNITR3.0.git
Install all the npm packages. Go into the web folder and type the following command to install all npm packages
$ npm install
Installation with npm for user authentication using Auth0
$ npm install passport passport-auth0 express-session dotenv --save
The Application runs on localhost:3000
Key | Description |
---|---|
AUTH0_DOMAIN | Auth0 Application Domain |
AUTH0_CLIENT_ID | Auth0 Application Client ID |
AUTH0_CLIENT_SECRET | Auth0 Application Client Secret |
Set Allowed Callback URLs - http://localhost:3000/callback
Set Allowed Logout URLs - http://localhost:3000
Set Allowed Web Origins - http://localhost:3000
Create a copy of the .env.example file and rename it to .env.
Create an application on Auth0
Get the Domain,Client ID,Client Secret of your apllication to replace the values for AUTH0_CLIENT_ID, AUTH0_DOMAIN, and AUTH0_CLIENT_SECRET with your Auth0 credentials.
If you don’t yet have an Auth0 account, signup for free here https://auth0.com/signup.
To customise your signup page see https://auth0.com/docs/libraries/lock/lock-configuration?_ga=2.238300800.1847475848.1635429207-2143042191.1635429207&_gac=1.123025913.1635429207.Cj0KCQjwlOmLBhCHARIsAGiJg7nTkgHiJXGPNZXTILlCB31ww09QEeYgrscHZujBF8CzIpwzB5JFcjQaAuILEALw_wcB&_gl=1mkahgxrollup_gaMjE0MzA0MjE5MS4xNjM1NDI5MjA3rollup_ga_F1G3E656YZ*MTYzNTU3MzcwMS45LjEuMTYzNTU3NjA2Mi41Mg..#additionalsignupfields-array-.
Navigate to the main project folder in a seperate terminal. Then install all npm packages
$ npm install express
$ npm install ejs
$ npm install hbs
$ npm install pug
If you don’t have nodemon globally installed on your system, install it so the server can autorefresh
$ npm install -g nodemon
Install the MongoDB Node.js Driver with the following command:
$ npm install mongodb
The server runs on localhost:27017
We want to make the blood transactions transparent and secure using blockchain. We want to use hospital APIs so that hospitals can directly connect with our database and make entries easily and update their status.