Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 715 Bytes

README.md

File metadata and controls

44 lines (37 loc) · 715 Bytes

UI project for PCR PASS

How to run web project in local

npm install
npm run start

How to deploy project to production

npm install
npm run build

How to use Hardhat and smart contracts

Install hardhat, and setup hardhat project

npm install -s hardhat @nomiclabs/hardhat-ethers 'ethers@^5.0.0'
npx hardhat
vi hardhat.config.js

Edit main contract

vi ./contracts/MedicalPCRCertificate.sol

Compile contract

npx hardhat compile

Run hardhat node (or run Ganache) to deploy contract to test

npx hardhat node

Create deploy script and deploy contract

vi ./scripts/deploy.js
npx hardhat run --network local scripts/deploy.js