Simple Certificate Dapp with Infura (and IPFS).
Make sure to have a reasonable amount of sepolia 'test ether' on your address and an IPFS service running on port 8080.
Clone the project
git clone https://github.com/Kerala-Blockchain-Academy/Express-Certificate-Dapp-Infura.git
Go to the project directory
cd Express-Certificate-Dapp-Infura
Go to the truffle folder
cd truffle
Install truffle globally
npm install -g truffle
Install other dependencies (hdwallet-provider & dotenv)
npm install
Create a .env file & add private key and project id
touch .env
truffle/.env
PRIVATE_KEY=<--your private_key-->
PROJECT_API=<--your project_api-->
Compile & migrate the contract to sepolia
truffle migrate --network sepolia
Go back to the project directory & install dependencies
cd .. && npm install
Copy the .env file from the truffle folder to the main folder
cp ./truffle/.env ./
Start the application
npm run dev
Distributed under the MIT License.