Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.82 KB

README.md

File metadata and controls

91 lines (62 loc) · 2.82 KB

Express-Certificate-Dapp-Infura

Simple Certificate Dapp with Infura (and IPFS).

🛠 Built With

NodeJS Express JavaScript Solidity Web3Js Truffle IPFS Infura

⚙️ Run Locally

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

License

Distributed under the MIT License.