- This is simple ethereum based swap web site, which can exchange
ether
<->LoveToken
. - LoveToken is a custom token impl of eip-20 protocol.
- install metamask
- install ganache
- start ganache (port :8545)
- install truffle
$ npm install -g truffle
$ truffle version
Truffle v5.4.30 (core: 5.4.30)
Solidity v0.5.16 (solc-js)
Node v14.15.1
Web3.js v1.5.3
- npm init
$ npm init
- test & migrate
$ truffle test
$ truffle migrate --reset
- npm start
$ npm run start
open http://localhost:3000
This is about how to setup ganache and metamask account's eth balance.