You would need these software installed on your machine to run the project.
- Visit the NodeJS web page at https://nodejs.org/en/
- Download and install the LTS version.
- 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.
Open a terminal and type these commands in order.
sudo apt update
sudo apt install nodejs
sudo apt install npm
- Download the LTS application binary for MacOS.
- When the file finishes downloading, locate it in Finder and double-click on it.
- Go through the entire installation process.
Open the command prompt or terminal and execute the following command.
npm install -g truffle
Visit the Ganache webpage at http://trufflesuite.com/ganache/ Download the platform binary for your OS and install it.
sudo apt update
sudo apt install git
Install gitbash from https://gitforwindows.org/
- Open gitbash or terminal.
- Clone the repo.
https://github.com/sidchopra13/Organ-Donation-Platform
- Traverse into the app folder.
cd organ-donation-platform/app
- Install npm dependencies.
npm install
While the npm dependencies are being installed, follow these instructions.
- Open ganache.
- Click on "New Workspace".
- Select "Add Project" and add the truffle-config.js file located in the folder "organ-donation-platform" you just downloaded.
- Confirm by pressing "Save Workspace" on the top-right corner.
- Navigate to the "Contracts" tab and you should notice DonorContract is not deployed.
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
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/