- Download
ganache
fromhttps://truffleframework.com/ganache
and setting port8545
same port on filetruflle.js
- Setup
MetaMask
for browser, then create a account and a customRpc listen to port truffle8545
. - Install
Ipfs
fromhttps://docs.ipfs.io/introduction/install
- Run ipfs
ipfs init
ipfs daemon
- Config cors header ipfs client
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\", \"POST\",\"GET\"]"
git clone https://github.com/Tinh96nb/DApp.git
npm install -g truffle
cd DApp
npm install
- Start mode dev:
npm start
- Build product:
npm build
/migrations
: step file for migrate./contracts
: smartcontract./src
: reactjs front-end.