- Create a voting dApp to cast votes, delegate and query results on chain
- Request voting tokens to be minted using the API
- Store a list of recent votes in the backend and display that on frontend
npm install
cd backend && npm install
cd frontend && npm install
touch .env
Add the following to your .env file
MNEMONIC=""
PRIVATE_KEY=""
INFURA_API_KEY=""
INFURA_API_SECRET=""
ALCHEMY_API_KEY=""
ETHERSCAN_API_KEY=""
Verify your hardhat configuration and dotenv setup. In base directory deploy helloworld.sol contract on Sepolia
npx hardhat run scripts/deploy.ts --network sepolia
npx hardhat verify --network sepolia <0xcontractaddress>
To run the application manually:
cd backend && npm start run:dev
cd frontend && npm start
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
To run the application automatically with one start script in base directory which will launch both backend and frontend:
npm start