Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.67 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.67 KB

A decentralized exchange for swapping tokens

The application is (CI/CD) deployed to blockchain.thaiminhpv.tech by Vercel, and (CI/CD) deployed to bdp306b.thaiminhpv.tech on IPFS by Fleek via Cloudflare Gateway.

A static manual build of version v4.0 is manually deployed to bdp306b-ipfs.thaiminhpv.tech on IPFS. The domain is pointed to Cloudflare Gateway using DNSLink (TXT record), and pinned by Pinata.

Demo video can be watched here.

thumbnail-image

Introduction

This project is a decentralized exchange application for swapping between Ether and ERC20 tokens.

Installation

# nvm use 16
npm install -g npm
npm install -g truffle
npm install -g ganache-cli

cd src
npm install web3
npm install

Create a file called .secret in the root directory of the project and paste your mnemonic phrase in it.

Development

Local chain development

Comment out <script src="dist/bundle.js"/> in index.html and then replace with <script src="index.js"/>.

cd src
npm run ganache

# then open another terminal
npm run migrate
npm run design  # or npm run serve

Test

truffle test

Deploy

cd src
npm run build

Then comment out <script src="index.js"/> in index.html and replace with <script src="dist/bundle.js"/>.