This is the DAPP for a universitary Project at USI.
Developed by Simone Rava and Aron Dalle Pezze. 💻
Preliminary steps:
- install MetaMask con Google Chrome
- run Ganache
- create two account on Metamask using Ganache private keys
- create a Ganache network on Metamask with http://127.0.0.1:7545 as URL and 1337 as Chain ID
How to run:
- npm install -> to install all the dependencies necessary
- truffle compile --all -> to compile all the contracts
- truffle migrate --reset -> to put the compiled smart contract on the blockchain
- npm run start -> to start the frontend on local port 3000
Useful commands:
truffle exec scripts/rewards.js -> give rewards to the users with tokens in staking
truffle compile --all -> compile all the contracts
truffle migrate --reset -> re-put the compiled smart contract on the blockchain
truffle console -> interact with the smart contracts on the blockchain, open a console that is a javascript runtime environment that let you use the blockchain