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.
The following instructions will create a copy of the project up and running on your local machine for development and testing purposes.
- XDCPay Chrome extension needs to be installed. (https://chrome.google.com/webstore/detail/xdcpay/bocpokimicclpaiekenaeelehdjllofo)
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:
- Go to https://remix.ethereum.org and import the OrganDonation.sol file.
- 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';
The website should now show that is it online.