Organ Donation Management Using Block Chain Technology
This software must be installed on your computer to run the program.
- Visit the NodeJS web page at https://nodejs.org/en/
- Download and install the LTS version.
- Download and run the installer. This will install both NodeJS and NPM (Nodepackage manager).
Open a command prompt or terminal and run the following command.
npm install -g truffle
Visit the Ganache webpage at http://trufflesuite.com/ganache/ Download the operating system binary for your OS and install it.
Install Gitbash from https://gitforwindows.org/
- Open gitbash or terminal.
- Clone the repo.
git clone https://github.com/Dhatchanamoorthi8/OrganDonation-Using-Block-Chain.git
- Traverse into the app folder.
cd organ-donation-platform/app
- Install npm dependencies.
npm install
When the npm dependencies are installed, follow these instructions.
- Open ganache.
- Click on "New Workspace".
- Select "Add Project" and add the truffle-config.js file in the "organ-donation-platform" folder you just downloaded.
- Press "Save Workspace" in the upper right corner and confirm.
- Go to "Contracts" tab and you should notice that DonorContract is not used.
Back in the gitbash or terminal window where you were downloading the npm dependencies, wait for it to finish and enter the following commands to deploy the commit.
truffle compile && truffle migrate
Now that everything is set-up, you can run the server.
- Run the following command
npm run dev
- Open a browser and go to http://localhost:8080/