Go to /backend
yarn install
Launch local blockchain
npx hardhat node
note the local wallets to add to Metamask for using the DApp in local
install Metamask web3 wallet https://metamask.io/download/
add hardhat local network
- Network Name:
Hardhat— This is up to you and defines how the network will show up in your network dropdown. - New RPC URL: [
http://127.0.0.1:8545/] - Chain ID:
31337— This is the default chain identifier that is implemented by Hardhat. - Currency Symbol:
HardhatETH— This is up to you and defines the symbol for the local network currency (ie. ETH).
Then add local wallets you can use with local hardhat blockchain
You can pass tests
npx hardhat test
And coverage
npx hardhat coverage
more infos https://github.com/crytic/slither
python3 -m pip install slither-analyzer
slither . --checklist
You launch hardhat console
npx hardhat console --network localhost
Need to deploy ?
npx hardhat ignition deploy ./ignition/modules/TISdeploy.js --network localhost
Go to /frontend
npm install
Launch the front
npm run dev
You'll need an ID for RainbowKit connect https://cloud.walletconnect.com/
Create a .env.local and add :
NEXT_PUBLIC_RAINBOWKIT_PROJECT_ID="ID from cloud walleconnect"
Doc Next JS https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables
- First you need to add local wallet address to metamask (exemple for Account #0 import new account with Private Key)
- Then connect to first account of the list, now you should have the Form to add accounts
- Add an account with the second address for exemple, with a name like John
- Then disconnect for connect with another wallet address, the third of the list for exemple
- Now you should have the profil of John, you can send him a tip