Skip to content

RowenTey/NTUSwap

Repository files navigation

NTUSwap - Decentralized Exchange

Our Decentralized Exchange is a secure, on-chain trading platform that enables peer-to-peer trading of ERC20 tokens without the need for intermediaries. Built on Ethereum, it implements an order book model providing users with traditional exchange functionalities in a decentralized manner.

Demo

Demo

Prerequisites

  • Truffle v5.11.5 (core: 5.11.5)
  • Ganache v7.9.1
  • Solidity - 0.8.20 (solc-js)
  • Node v22.2.0
  • Web3.js v1.10.0

Getting Started

  1. Clone the repository:
git clone <repository-url>
cd <project-directory>
  1. Install dependencies:
npm install
  1. Install Truffle:
npm install -g truffle
  1. Install Ganache and run it in the terminal on port 8545:
npm i ganache
ganache
  1. Run migrations and migrate.sh file
truffle compile
chmod +x migrate.sh
./migrate.sh
  1. Install all frontend dependencies:
cd frontend
npm install
  1. Run the frontend
npm run dev
  1. Add local Ganache chain to Metamask. (RPC URL: http://127.0.0.1:8545, Chain ID: 1337) alt text

  2. Import the private key of account1 (owner) and account3 (user2) into Metamask. alt text

  3. Click "Connect Wallet" on the landing page.

About

NTUSwap - Decentralized Exchange on Ethereum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •