- Start the Truffle project
cd ./truffle && yarn compile
truffle develop --log
yarn dev- Start the D-App
cd ./app && yarn start- (Optional) Develop and debug on Remix at http://localhost:7777
cd ./scripts && bash remix.sh- (Optional) Configure Ipfs url using
app/.env
REACT_APP_IPFS_HOST=localhost,
REACT_APP_IPFS_PORT=5001,
REACT_APP_IPFS_SCHEME=httpThe D-App will be deployed to
surge.shand the smart contract toropstenusing infura
-
Create a new project on Infura project
-
Fill your project secrets inside
./truffle/secrets.json. Use./truffle/secrets.example.jsonfor reference. -
Add a CNAME file to the root of the app project (
./app/CNAME.json) -
From CLI, run:
cd ./scripts && bash deploy.sh