Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumukus/gcitcert
This is a simple implementation of dApp in react native using the MetaMask wallet and ethersjs
https://github.com/sumukus/gcitcert
dapp ethereum ethers ethersjs expo metamask metamask-wallet react-native smart-contract solidity
Last synced: 10 days ago
JSON representation
This is a simple implementation of dApp in react native using the MetaMask wallet and ethersjs
- Host: GitHub
- URL: https://github.com/sumukus/gcitcert
- Owner: sumukus
- Created: 2023-06-11T08:46:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-14T08:36:30.000Z (over 1 year ago)
- Last Synced: 2024-11-14T15:33:43.674Z (2 months ago)
- Topics: dapp, ethereum, ethers, ethersjs, expo, metamask, metamask-wallet, react-native, smart-contract, solidity
- Language: JavaScript
- Homepage: https://learn.drukinfotech.com/mobile-dapp-react-native-metamask-ethersjs/
- Size: 559 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```