- Navigate to the
hardhatdirectory:
cd hardhat- Configure your environment variables:
- Copy from
.env.templateand create your.envfile accordingly.
- Install dependencies:
npm install- Compile the contracts:
npx hardhat compile- Deploy the contracts to the Celo Alfajores testnet:
npx hardhat deploy ./ignition/modules/IncidentManagerModule.ts --network alfajores- Navigate to the
Incident-webappdirectory:
cd Incident-webapp- Install dependencies:
npm install- Start the development server:
npm run devNote: Ensure that the Celo Alfajores testnet is added to your MetaMask wallet in your browser.
The smart contract is deployed at: 0x3ab0dCEF4F1A3d005B68F2527F96C47FAb656BAC on Alfajores Blockscout