UniswapDEX is an an open source front-end interface for Uniswap protocol. The main purpose of this project is to allow users list ERC-20 tokens on uniswap exchange, buy, sell and transfer ERC-20 tokens and add/remove liquidity to uniswap liquidity pools. Basic statistics information of uniswap exchange are also provided.
This front-end interface is a SPA (Single Page Application) developed using vue.js and nuxt.js. Metamask wallet extension is required to submit the transactions.
- Website: https://uniswapdex.com
- Uniswap Protocol: uniswap.io
- Developer team: https://shardus.com/#team
- Report Issue: https://gitlab.com/shardus/uniswapdex/issues
For example, on Ubuntu Linux you can do this:
sudo apt-get update
sudo apt-get install build-essential
For example, on Ubuntu Linux you can do this:
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python2.7
sudo ln -s /usr/bin/python2.7 /usr/bin/python
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
nvm install 10
$ git clone https://gitlab.com/shardus/uniswapdex.git
- Go to https://etherscan.io and get your API key
- Replace
etherscanApiKey
value inconfig.js
file
$ npm install
$ npm run dev
Go to http://localhost:3000 to test the app
build for production locally
$ npm run build
To copy dist/
folder to remote server,
$ scp -r dist USERNAME@IP_ADDRESS:REMOTE_DIRECTORY
Follow these steps on your remote server and run build command
- Clone Repo
- Change etherscan API key
- Install dependencies
And then
$ npm run build
On your remote server, setup an http or https server to serve dist/index.html
file.
Easiest way to setup a http server is to use serve
npm package.
- Install
serve
package globally by runningnpm install serve -g
- Navigate to
dist/
directory - Run
serve
Edit components/Noaccount.vue
and uncomments lines 40-51. Then run npm run build
again