Simple decentralized application based on Solidity and Web3 that swap a simple pair of tokens with the help of the Uniswap V2 library.
- Solidity (Writing Smart Contract)
- Javascript (React & Testing)
- Web3 (Blockchain Interaction)
- Truffle (Development Framework)
- Ganache CLI (For Local Blockchain)
- Infura (Ethereum Node As A Service Provider)
- Install NodeJS, should work with any node version below 16.5.0
- Install Truffle, In your terminal, you can check to see if you have truffle by running
truffle version
. To install truffle go to your project root directory and runnpm install --save-dev truffle
Ideal to have truffle version 5.4 to avoid dependency issues. - Install Ganache CLI.
$ git clone https://github.com/davdotsol/uniswap-v2-defi-app.git
$ cd uniswap-v2-defi-app
$ git checkout starter
$ cd uniswap-v2-defi-app
$ npm install
$ npm run ganache
$ npx truffle migrate --reset --skip-dry-run
$ npx truffle test