FunixSwap is a decentralized application built on blockchain technology that enables users to exchange various tokens with one another and transfer tokens to other users without relying on a centralized exchange.
- Swap tokens
- Transfer tokens to other addresses
- View token balance
The application is deployed on TomoChain testnet at https://funix-swap.vercel.app/ using Vercel automatic deployment.
- Clone the repository
git clone https://github.com/DAN3002/FUNiX-Swap.git
- Install dependencies
npm install
- Run Ganache
npm run ganache
- Compile and migrate smart contracts
npm run migrate:dev
- Update the contract address in
src/config.js
- Start frontend
cd front-end
npm run start
- You can now access the application at
http://localhost:3000
- Create a TOMO wallet.
- Get some TOMO from TomoChain faucet.
- Create a
.secret
file in the root directory and put your mnemonic phrase in it. - Compile and migrate smart contracts
npm run migrate:tomodev
- Update the contract address in
src/config.js
- Start frontend
cd front-end
npm run start
- You can now access the application at
http://localhost:3000
The test script using Truffle and Ganache to run the test cases. Make sure you have Ganache running before running the test script.
npm run test