Most of the steps are only reuired when runninig for the first time, please keep that in mind.
Before we start we need some tools and dependencies. Please install the following:
- Node.js and npm (comes with Node)
- Git
- Ganache-cli(Node module)
- Install Ganache-cli:
npm install -g ganache-cli
- Run ganache-cli:
ganache-cli -i 5777
- Install Truffle framework:
npm install -g truffle
- Run truffle migration (process of deploying smart contract to the blockchian):
truffle migrate
Provide Ethereum address from which transaction cost can be deducted, in app.js (Line No.: 16, Veriable Name: accountAddress)
Install all other dependencies using following command: npm install
Execute the command: npm start