MyDex is a web3-based decentralized exchange application that leverages the Moralis API for fetching current values of ERC20 tokens and the 1inch API for checking allowance and executing swap transactions.
To set up the project locally, follow these steps:
-
Navigate to the
dexBack
folder. -
Create a
.env
file. -
Add your Moralis API key:
MORALIS_KEY=your_moralis_api_key
npm install
nodemon index.js
Navigate to the dex folder.
cd dex
Create a .env file.
Add your 1inch API key:
REACT_APP_1INCH_KEY=your_1inch_api_key
Install dependencies:
npm install
npm start
Running the Application Visit http://localhost:3000 to access the MyDex decentralized exchange locally.
Ensure your internet connection is stable. Protect your API keys and do not expose them in public repositories.
- Moralis API
- 1inch API
- wagmi
- React.js
- Express.js
Feel free to contribute by opening issues or submitting pull requests.