- Install npm package manager and node :
sudo apt install nodejs
,sudo apt install npm
- Install truffle :
npm install -g truffle
- Install Ganache : https://www.trufflesuite.com/ganache
- Run
truffle compile
from the project directory in terminal - Start the Ganache and choose
Quickstart Ethereum
- Make sure that the local host url on Ganache and in
truffle-config.js
is same. - Then on terminal run
truffle test
- Then run
truffle migrate --reset
- Then run
npm run dev
. This will start the project in the browser - Make sure that your metamask is connected to the site (Import accounts from Ganache blockchain into metamask).