/8lives-hackinhub

Primary LanguageJavaScriptMIT LicenseMIT

8Lives.

8Lives is a Blockchain Organ Donation prototype created as a proof-of-concept for a decentralized solution. The application is built on Ethereum, more specifically on Remix where the smart contract is compiled and deployed. XDCpay serves as a wallet for managing the fake XDC coins. A front-end interface application is built in JavaScript and interacts with the back-end via Web3.js.

Watch the video

8 different organs can be donated from human body.

Getting Started

The following instructions will create a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

Clone the 8Lives. repository onto local machine.

git clone https://github.com/Bogeshwararao/8Lives.git

Open the index.html file and ensure it displays the following:

Setting up the Environment

Compile and Deploy Smart Contract

  • Compile Solidity file.
  • Select Injected Web3 under Environment.
  • Deploy and confirm in XDC Apothem testnet
  • Ensure that the smart contract address matches the one in the web3.js file (line 437)
  • Otherwise, update the address.
const contractAddress = 'insert smart contract address';

Testing the Application

The website should now show that is it online.

Other pages:

Donor registration form

Authorize XDCPay

Transaction made successfully