Prerequisites
-
Install ganache
-
Install truffle
-
Run ganache in a terminal window
$ ganache -i 5777
-
Open app.js file and update network id to 5777
-
In app.js set url to 127.0.0.1:8545
-
In app.js, set account address from the list of ganache accounts generated
-
Compile smart contracts by running
$ truffle migrate
-
Run
$ npm install
-
Start the server
$ npm start
-
Visit localhost:3000