Tegfarm is a DeFi Yield Farming App running on the Ethreum Blockchain.
Tegfarm allows users to deposit and borrow ETH, DAI and USDT and get interest in TEG token in return.
Except for the regular suspects - git, Node, npm, etc - you need these things to run the Tegfarm app. Follow the instructions supplied below before you continue with Installation.
- Moralis. Subscribe to Moralis here and provide the app ID and server link in the .env file (see .env.example)
- Make sure you install Truffle here as well as Ganache here to have a local blockhain running. On Ganache, you will have 10 accounts that you can use to interact with the SMART contracts in the application.
- Install Metamask for your browser here and connect it to the second account you see listed on Metamask. The first one will be used to deploy the smart contracts on the blockchain and should not be used.
-
Clone this repo and enter!
git clone https://github.com/frankperler/yieldfarm.git cd yieldfarm
-
Install dependencies, by running
npm install
-
Add Moralis' key and server link as listed in the .env.example file.
-
In the client, open the terminal and run in this order:
- truffle compile
- truffle migrate --reset
- npm start
-
Open your browser and you should see the landing page of Tegfarm
React, Material-UI, Solidity, Web3.js, Truffle, Ganache, Moralis