A super lightweight boilerplate using react, es6, truffle, and webpack.
Start a local blockchain like Ganache. You can use Ganache CLI or the desktop client.
ganache-cli
Add an .env
file depending on which port ganache is running on and which port you want your server running on.
// .env
PORT=5000
RPC_HOST="127.0.0.1"
RPC_PORT=7545
Compile and migrate your local smart contracts.
truffle compile
truffle migrate --reset
Install packages and start server (I prefer using yarn)
yarn
yarn start