Backend Install
- Install dependencies in project directory(working with node v10.19.0)
npm i
- Install truffle globally
npm i -g truffle
- Rename .env_example to .env and fill PRIVATE_KEYS&DEV_ADDRESS (rest later)
- Compile contracts
truffle compile
- Get LP Token address(instructions or in Masterclass video) and add it to .env LP_TOKEN_ADDRESS
- In .env fill INFURA_KEY (instruction)
- Get Test Rinkeby ETH link
- Check the latest block on Rinkeby link
- Add to that number ~1000 blocks and put this number in .env START_BLOCK
- In .env END_BLOCK add higher number than START_BLOCK (e.g. 1M higher)
- Optionally edit also TOKENS_PER_BLOCK & ALLOCATION_POINT (More info in Masterclass video)
- Migrate contracts to ETH
truffle migrate --reset --network rinkeby
...and then follow log instructions
- Get Test BNB link
- Create&Add liquidity pool on PancakeSwap
truffle exec scripts/create_lp.js --network bsc_testnet
...and then follow log instructions
- Migrate Contracts to BSC
truffle migrate --reset --network bsc_testnet
...and then follow log instructions
Frontend Install
- Visit backend README.md 1st, then come back
- Install dependencies with yarn (working with: 1.22.10, to install type: npm i -g yarn@1.22.10):
yarn add
- Run dApp:
yarn start
- If you run dApp on BSC, remember to Setup BSC in your MetaMask HowTo# CASAdePERO