- Add test to smart contracts
- Verify smart contracts on-chain
- Verify smart contracts off-chain
- Add docker-compose
- Add prebuild image
- Add .github build action
- Add test to python package
The first things you need to do are cloning this repository and installing its dependencies:
git clone https://github.com/hhio618/poh-evidence.git
cd poh-evidence
npm install
Once installed, let's run Hardhat's testing network:
npx hardhat node
Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:
npx hardhat run scripts/deploy.js --network localhost
Finally, we can run the frontend with:
cd frontend
npm install
npm start
Note: There's an issue in
ganache-core
that can make thenpm install
step fail.If you see
npm ERR! code ENOLOCAL
, try runningnpm ci
instead ofnpm install
.
Open http://localhost:3000/ to see your Dapp. You will
need to have Metamask installed and listening to
localhost 8545
.