Git Product home page Git Product logo

gcitcert's Introduction

gcitCert

This is a simple implementation of dApp in react native using the MetaMask wallet and ethersjs.

Application Overview

We will create a certificate issue application for our a college. The mobile dApp will have the following feature:

  • Issue Certificate - The authorized person will be able to issue the certificate
  • Verify Certificate - Anyone can check the authenticity of the certificate and verify whether it was issued by the college
  • View Certificate Details - the individual can access their certificate details from the system
  • View Account Information - User will be able to see account address and its balance

Replicate the above mobile dApp

In oder to try this app, follow the steps given below

Clone tbe app and install the necessary packages

git clone [email protected]:sumukus/gcitCert.git gcitCert
cd gcitCert
npm i

Edit the file inside smartcontract directory

You have to edit the gcitCert.sol file.

  • Inside the gcitCert.sol file replace the address in addgcitCert method with one of your MetaMask wallet account address from testnet(Sepolia)
require(msg.sender == address(0x9dC22219076ef89d9E0a6248F18B3582Ea7A93dB), "Only the authorized issuer can add certificates");

Then deploy the smart contract in the Sepolia testnet and take note of the contract address. We will require it later on to interact with the smart contract.

Create .env file

Create the .env file in the root directory and add the details for the given fields

SMART_CONTRACT_ADDRESS=Your smart contract address 
INFURA_API=infura api for your app
CERTIFICATE_ISSUER=address of certificate issuer

Run the dApp

Now you can run the dApp using the command given below

npx expo start

Radio Buttons Image

gcitcert's People

Contributors

sumukus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

whiteboxideas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.