- Npm: 6.14.16
- Node: v14.19.0
- Install and run test
$ npm install
$ npm run test- To deploy erc-20 smart contract on local node
$ npm run node # To run a local node
$ npm run deploy # On a separate terminal, deploy erc-20 smart contract on local node
$ npm run transfer # To assign initial balance to all accounts generated by the local node- To run backend (a simple backend transfer event listening service)
$ npm run server- To run frontend (front end that performs the transaction)
Note: Do import the local accounts to metamask and switch the network to "Localhost 8545" for testing (Make sure to update "Localhost 8545" network configuration to RPC URL: http://localhost:8545 and Chain ID: 31337)
$ cd client
$ npm install
$ npm start