WaffleSwap is a DEX built on ethereum with a custom token called Waffle Coin. You can use this DApp to buy or sell Waffle Coin in exchange for Ethereum.
- Nextjs and Tailwind CSS for the Frontend Application
- Ganache Blockchain
- Truffle and Web3.js for building and testing Smart Contracts
- Solidity for defining the Smart Contracts backend
- Clone the repo and install the required dependencies using "yarn -install"
- Download Ganache Suite
- Install Metamask for your browser
- Create a custom RPC server in Metamask and copy the RPC URL from ganache. Chain ID is 1337. (For RPC: Either 7545 or 8545 should work). (Custom server should already exist on Metamask, delete that.)
- Import test accounts from Ganache to Metamask by copying the account private keys from Ganache and import on Metamask via private key option.
- With ganache running and metamask on stand-by, run cmd command "truffle migrate --reset" in the folder. This migrates all the contracts over to the blockchain. Then run command "truffle test". This command tests all the smart contracts to ensure their integrity.
- After both the commands execute successfully, run command "yarn dev" to start the project.