Readme: In this dApp I used Solidity for creating the smart contract, and Ethereum based Volta blockchain to deploy the smart contract. Front end of the application is written in Reactjs and it will communicate with the backend of the network, i.e. the blockchain’s smart contract using the Hardhat Etherjs framework.
To run and build the programme locally, After you cloned the repository, you will need to install the packages using
npm install
You first need to compile the contract and upload it to the blockchain network. Run the following commands to compile and upload the contract.
npx hardhat compile
npx hardhat run --network volta scripts/deploy.js
Once the contract is uploaded to the blockchain, copy the contract address and copy it in the .env file. You can also use another blockchain by writing the blockchain's endpoint in hardhat-config.
Once you have pasted your private key and contract address in the .env file, simply run command
npm start