Code Monkey home page Code Monkey logo

uniswap-v2-defi-app's Introduction

DeFi App Based on Uniswap v2

Simple decentralized application based on Solidity and Web3 that swap a simple pair of tokens with the help of the Uniswap V2 library.

Technology Stack & Tools

  • 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)

Requirements For Initial Setup

  • 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 run npm install --save-dev truffle Ideal to have truffle version 5.4 to avoid dependency issues.
  • Install Ganache CLI.

Setting Up

1. Clone/Download the Repository

$ git clone https://github.com/davdotsol/uniswap-v2-defi-app.git
$ cd uniswap-v2-defi-app
$ git checkout starter

2. Install Dependencies:

$ cd uniswap-v2-defi-app
$ npm install

3. Start Ganache

$ npm run ganache

4. Migrate Smart Contracts

$ npx truffle migrate --reset --skip-dry-run

5. Run Tests

$ npx truffle test

uniswap-v2-defi-app's People

Contributors

davdotsol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.