This project is a decentralized exchange created for trade and create limit orders. Is a DEMO builded thanks to the course EathTheBlocks
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.
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
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
You can run a simple command to install everything
yarn
To test the functions from the smart contract.
truffle test
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.
- 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
- EatTheBlocks