Skip to content

A dApp platform connecting organ donor and acceptor via ethereum blockchain

Notifications You must be signed in to change notification settings

RahulSabinkar/organ-donation-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues


Logo

Organ Donation Platform

A dApp platform connecting organ donor and acceptor via ethereum blockchain.

Screenshots

Landing Page

Landing Page

Dashboard

Dashboard Page

Viewing Database

Database Viewing Page

Transplant Matching

Transplant Matching Page

(back to top)

Built With

  • Solidity
  • Node

(back to top)

Prerequisites

You would need these software installed on your machine to run the project.

node.js

Windows:

  1. Visit the NodeJS web page at https://nodejs.org/en/
  2. Download and install the LTS version.
  3. Download the installer and run it. This will install both NodeJS and NPM (Node Package Manager).

Note: If you're on Windows 11, make sure to have latest LTS version of nodejs installed, or else you'll probably run into some issues.

Arch Linux:

Open a terminal and type the following command.

sudo pacman -S nodejs npm

Ubuntu:

Open a terminal and type these commands in order.

  sudo apt update
  sudo apt install nodejs
  sudo apt install npm

RedHat, Fedora, CentOS:

sudo yum update
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -

MacOS:

  1. Download the LTS application binary for MacOS.
  2. When the file finishes downloading, locate it in Finder and double-click on it.
  3. Go through the entire installation process.

Truffle

Open the command prompt or terminal and execute the following command.

npm install -g truffle

Ganache

Visit the Ganache webpage at http://trufflesuite.com/ganache/ Download the platform binary for your OS and install it.

Git

Arch Linux

sudo pacman -S git

Ubuntu

sudo apt update
sudo apt install git

Windows

Install gitbash from https://gitforwindows.org/

Installation

Download

  1. Open gitbash or terminal.
  2. Clone the repo.
    git clone https://github.com/rahulsabinkar/organ-donation-platform.git
  3. Traverse into the app folder.
    cd organ-donation-platform/app
  4. Install npm dependencies.
    npm install

Connect Ganache

While the npm dependencies are being installed, follow these instructions.

  1. Open ganache.
  2. Click on "New Workspace".
  3. Select "Add Project" and add the truffle-config.js file located in the folder "organ-donation-platform" you just downloaded.
  4. Confirm by pressing "Save Workspace" on the top-right corner.
  5. Navigate to the "Contracts" tab and you should notice DonorContract is not deployed.

Deploy Contract

Back in the gitbash or terminal window instance in which you were downloading npm dependencies, wait for it to finish up and then type in the following commands to deploy the contract.

truffle compile && truffle migrate

Run the server

Now that everything is set-up, you can run the server.

  1. Run the following command
    npm run dev
  2. Open a browser and go to http://localhost:8080/

(back to top)

Team Members

(back to top)

About

A dApp platform connecting organ donor and acceptor via ethereum blockchain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published