Skip to content

Distributed Application, aimed to create a token for the customer, in this case we took as example the University

Notifications You must be signed in to change notification settings

SimoravaIT/Loyalty-DApp

Repository files navigation

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

About

Distributed Application, aimed to create a token for the customer, in this case we took as example the University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published