Skip to content

nico-limo/Dex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEX EatTheBlocks

This project is a decentralized exchange created for trade and create limit orders. Is a DEMO builded thanks to the course EathTheBlocks

Starting 🚀

To run corretly this project locally, you need to have npm and truffle installed. Also you will need have installed metamask extension in your browser and add a custome rpc (truffle develop).

The new RPC URL it will be http://127.0.0.1:9545 The chain Id it will be 1337

_Also, you will need to copy the Mnemonic code into your metamask to use the fake accounts.

Running the project 📦

To run this project locally, you will need to follow the next steps.

Inside Dex, you wil run in your terminal the next commands:

truffle develop

And inside the truffle terminal

migrate --reset

Then inside client you only need to run

npm start

Pre-requirements 📋

You will need to install the next libraries to run this project. For truffle will need to be installed in your machine. The others ones could be installed using only the command npm i

npm install -g truffle
yarn add @openzeppelin/contracts
yarn add @openzeppelin/test-helpers

Installing 🔧

You can run a simple command to install everything

yarn 

Testings ⚙️

To test the functions from the smart contract.

truffle test

What we are testing 🔩

Is very expensive to deploy and check later if our Smart Contract is working, to avoid this, we test internally all the function that we are going to use.

Builded with 🛠️

  • React - Framework web
  • Solidity - Smart Contract Language
  • REMIX - Used first to write the Smart Contract and check issues or errors
  • Truffle - Used for deployment and testing locally

Thanks to 🎁

  • EatTheBlocks

About

Dex tutorial from EathTheBlocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors