- node --version == v10.15.3
- npm --version == 6.10.3
- lite-server (same as pet-shop truffle box)
-
Clone Repository
-
install dependencies:
npm install -
start testrpc:
testrpcIf testrpc not installed then enter:
npm install -g ethereumjs-testrpc -
migrate to local testnet:
truffle migrate -
update the smart contract address in src/app.js and connect Metamask to your application
-
Build a project by running:
npm run build:client -
start frontend server:
npm run devNow you should see lite server running
-
Update your mnemonic key in truffle-config.js Note: If you have real ether in your wallet never upload mnemonic key or private key. you can put it in .env and export it to truffle-config.js
-
Run truffle deploy --network ropsten
truffle deploy --network ropsten -
update the smart contract address in src/app.js
-
rebuild frontent scripts:
npm run build:client -
run npm run dev:
npm run devOR
Deploy public/ frontend to your server and run.