Skip to content

minkj1992/leoo_swap

Repository files navigation

Cryptocurrency

refs

  • This is simple ethereum based swap web site, which can exchange ether <-> LoveToken.
  • LoveToken is a custom token impl of eip-20 protocol.

preview

origin .mov file link

dependices

setup

  1. install metamask
  2. install ganache
    • start ganache (port :8545)
  3. 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
  1. npm init
$ npm init
  1. test & migrate
$ truffle test
$ truffle migrate --reset
  1. npm start
$ npm run start

open http://localhost:3000

before swap

origin .mov file link

This is about how to setup ganache and metamask account's eth balance.