BUET-BeeCrypt / BUET-Beecrypt-BeeCertifier

A Dapp built with react which uses web3.js to interact with solidity smart contracts hosted on the rinkeby blockchain

Home Page:https://www.youtube.com/watch?v=vPaQ9M0kZWE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BeeCertifier

A Dapp built with react which uses web3.js to interact with solidity smart contracts hosted on the rinkeby blockchain.

Frontend

  • App.js file holds a single page application
  • Smart contract functions
    • loadWeb3 - initialize web3 and contracts
    • getInitialData - get property and purchase lists
    • buyCourse - add surity on the blockchain
    • finishCourse - add unverified certificate data on the blockchain
    • approveCertificate - approve pending unverified certificate in the blockchain and also refund surity if the course is finished within deadline.

Contracts

Contracts are located in the src/contracts folder

  • Certificate.sol
  • Registry.sol

The ABIs for the contracts are located in src/abis folder

Setup

  • Install node.js
  • Run npm install from project root to install packages
  • Create a .env file in project root like the following and put your contract addresses
CERTIFICATE_CONTRACT_ADDRESS=<here>
REGISTRY_CONTRACT_ADDRESS=<here>
  • Install metamask, setup account
  • Set network on metamask to 'Rinkeby Test Network' (if you deployed smart contracts to rinkeby). Might need to enable test networks in settings.
  • Run npm start to run server and visit http://locahost:3000/
  • Should get prompted by metamask to connect to the website. Accept it and you're good to go!

Architecture

Frontend Demo

About

A Dapp built with react which uses web3.js to interact with solidity smart contracts hosted on the rinkeby blockchain

https://www.youtube.com/watch?v=vPaQ9M0kZWE


Languages

Language:JavaScript 70.0%Language:Solidity 21.4%Language:HTML 7.2%Language:CSS 1.5%