This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.jsThis project is a decentralized application (DApp) for managing Letters of Recommendation (LOR) using Ethereum smart contracts. It includes smart contracts, deployment scripts, and a React-based frontend.
- Node.js & npm
- Hardhat (for smart contract development)
- MetaMask (for interacting with the frontend)
contracts/— Solidity smart contractsscripts/— Deployment scriptstest/— Test scripts for smart contractsfront/— React frontend
- Install dependencies:
npm install
- Run tests:
This will execute all tests in the
npx hardhat test
test/directory.
- Compile contracts:
npx hardhat compile
- Deploy to local network:
To deploy to Sepolia or another testnet, configure your network in
npx hardhat run scripts/deploy.js --network localhost
hardhat.config.jsand use:npx hardhat run scripts/deploy.js --network sepolia
- Navigate to the frontend directory:
cd front
- Install frontend dependencies:
npm install
- Start the frontend app:
The app will be available at
npm start
http://localhost:3000.
- Ensure your wallet (e.g., MetaMask) is connected to the correct network (local, Sepolia, etc.)
- Update contract addresses in the frontend as needed after deployment.
- Only authorized accounts can approve recommendations.
- If you encounter issues, check your network configuration and contract addresses.
- For more details, see the comments in the source files.