This Boilerplate code that I have made can be used by anyone looking to make quick dev iterations with frontend and backend(using Ethereum)
- node.js (10+)
- truffle
- yarn
yarn get-dep
, then proceed as needed
yarn total-setup
(Spins up the ganache instance, as well as serves the react-app on localhost:3000)
yarn setup
(Spins up the local ganache instance, port:9545, chainId:1337)yarn test-all
(runs all tests, run in different terminal)yarn test-deploy
(checks if contract can be deployed, run in different terminal)yarn test-cov
(Runs Coverage tests)
Note that the contract name is newcon, and if additional contracts are to be deployed, include it in the 2_deploy_contracts.js file
cd app/
yarn start