Steps what to do in terminal:
npm install @typechain/ethers-v5 @typechain/hardhat @types/chai @types/node @types/mocha ts-node typechain typescript
To compile contracts:
npx hardhat compile
To deploy contracts:
npx hardhat run --network rinkeby scripts/<nameOfFile>.js
Create env/secret.json with your private data and voilà.
For remix practice:
Give approval for tokens for sender.
Stake tokens.
Set interest rate.
Calculate rewards.
Withdraw tokens.