Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.2 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.2 KB

Loyalty DApp for USI

This is the DAPP for a universitary Project at USI.
Developed by Simone Rava and Aron Dalle Pezze. 💻

Preliminary steps:

  1. install MetaMask con Google Chrome
  2. run Ganache
  3. create two account on Metamask using Ganache private keys
  4. create a Ganache network on Metamask with http://127.0.0.1:7545 as URL and 1337 as Chain ID

How to run:

  1. npm install -> to install all the dependencies necessary
  2. truffle compile --all -> to compile all the contracts
  3. truffle migrate --reset -> to put the compiled smart contract on the blockchain
  4. 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