The main goal of this project is to create a decentralised system that will allow employees to receive tokens and exchange them for different rewards. The whole project is based on blockchain technology and makes practical use of smart contracts and cryptocurrency.
NodeJS > 16.x
Metamask
To run locally:
npx hardhat node
npx hardhat run scripts/deploy.js --netowrk localhost
To run on remote network like mumbai fill your .env file with private key and network data
npx hardhat run scripts/deploy.js --netowrk mumbai
To connect to remote network like Mumbai you need network RPC url and your private key.
Both can be found in metamask settings. If your network is not added to metamask go to chainlist.org
Follow these steps:
- Create .env file in root directory
- Copy content .env.example and past to .env file
- Fill your private data
You can verify contract deployment on network scanner like : mumbai.polygonscan.com
cd .\frontend\
npm i
npm run dev
- Install MetaMask
- Config your wallet. Write your wallet password and passphrase
- To add local blockchain network to metamask:
- Optionally you can add token to metamask to see balance. Do it using token smart contract address.
For more hardhat tips check HardHat tutorial
Example how to run some tasks using hardhat:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js --netowrk localhost
Format your .sol files
npx prettier --write 'contracts/**/*.sol'