Boilerplate Project
The Relic Protocol team provides a boilerplate project that includes all the implementations described in this tutorial, including contracts, test code, and a web application.
You can clone the project with the following command:
git clone https://github.com/Relic-Protocol/relic-boilerplate.git
After that, run a Hardhat network node with the following command in the project's root folder:
npx hardhat node
Now you can deploy the contract to the Hardhat network with the following command:
npx hardhat run scripts/deploy.ts --network localhost
Finally, you can preview the web application that interacts with the contract by running the following command. Don't forget to connect your wallet to the Hardhat network.
cd frontendnpm installnpm run dev