yogdaan
blockchain-certification
JavaScript

Generation and validation of certificates using ethereum blockchain

Last updated Jun 11, 2026
162
Stars
67
Forks
17
Issues
0
Stars/day
Attention Score
60
Language breakdown
JavaScript 88.6%
CSS 9.9%
HTML 0.9%
Dockerfile 0.5%
Files click to expand
README

Certificate Generation and Validation Using Blockchain

Docker Build Build Status Join the chat at https://gitter.im/yogdaan/blockchain-certification Deploy

Built using Ethereum on local blockchain setup and deployed on Rinkeby test network.

| Contract deployed at | 0x89c34c6a0d4c7587e9120a533757f380f4676887 | | -------------------- | ------------------------------------------ | | RPC Network | Rinkeby Test Network |

Steps to set up local development environment

Setting local blockchain

  • We need to install CLI version of Ganache.
npm install -g ganache-cli

> Ganache provides us our personal local blockchain network which we can use to develop our blockchain application. It also gives temporary test accounts with fake ethereum which we can use to run our apps. We need to start the RPC server before running our application.

  • To start the RPC server run the command
npm run ganache

> Windows user will need to run this command in separate command prompt or terminal.

  • Deploy the smart contract to the local blockchain.
npm run contract-deploy
The above 2 steps need to be run everytime you are running the project.

Setting local database

MongoDB server should be running as a background Process
  • Open mongo in terminal using command mongo
  • Then change the db using command
use certification
  • Then set DB user and password with the following command
db.createUser({
     user: "<YOUR USER NAME>",
     pwd: "<YOUR USER PASSWORD>",
     roles: [{ role: "dbOwner", db: "certification" }]
   });
  • Include these username and password in the .env file.

Now we can start the server

npm start

Deploying Smart Contract

The contract can be deployed in any test networks. We are using Rinkeby test network with help of truffle.

  • After that create a project in Infura. This will help us to use rinkeby network through infura.
  • You will get an endpoint like this https://rinkeby.infura.io/yourapikey.
  • Create a .env file in root directory and paste the previously genrated mnemonic and the endpoint URL in that. An example is also provided in .env.example file.
> For running in development environment and to use local blockchain network, use the LOCAL_ENDPOINT variable and replace the URL with your own local URL (These default values are filled already and shouldn't be changed unless until RPC server running on different port)
  • Now you can deploy the smart contract using a single command:
npm run deploy
  • You will get a contract address of newly generated contract. Save this for further uses.

Testing app

To test the app run the command truffle test. RPC server should be running to run the tests.

Useful reads

Youtube Video for better understanding of the project

youtube-picture


| Developers | | | ------------------------------------------------------ | ------------------------------------------------------------- | | Saurabh Thakur | st |

© 2026 GitRepoTrend · yogdaan/blockchain-certification · Updated daily from GitHub