- 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=http
The D-App will be deployed to
surge.sh
and the smart contract toropsten
using infura
-
Create a new project on Infura project
-
Fill your project secrets inside
./truffle/secrets.json
. Use./truffle/secrets.example.json
for reference. -
Add a CNAME file to the root of the app project (
./app/CNAME.json
) -
From CLI, run:
cd ./scripts && bash deploy.sh