This is a DAPP (Decentralized Application) that I've followed in the tutorial from Truffle suite (https://www.trufflesuite.com/tutorials/pet-shop).
The tutorial provides step by step to building the smart contracts on Ethereum via local network, by Ganache.
- Install Node.js
- Install Truffle node package
- Install Ganache
- Install Metamask
** run Ganache first **
-
compile the smart contract
$ truffle compile
-
test the smart contract
$ trffle test
-
deploy the smart contract
$ truffle migrate
$ npm install
$ npm run dev