Skip to content

A VC-gated (verifiable credential gated) page; you need to hold a Polygon ID KYCAgeCredential with a birthday before 2023 for access

Notifications You must be signed in to change notification settings

oceans404/vc-gated-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Verifiable Credential (VC) Gated Website

The code below still works as of June 2023, but for the best developer experience, use my fullstack template instead - fullstack-polygon-id-vc-gated-dapp - It includes both the server and frontend and is everything you need to set up a KYCAgeCredential VC gated dapp with Polygon ID.


Deprecated repo

(use above repo)

Screenshot 2023-06-06 at 10 30 51 AM

How to run locally

0. Follow Verifier server setup instructions

Read through the server readme and follow local server setup instructions: https://github.com/oceans404/vc-verifier#local-server-setup

1. ⭐ Star this repo so you have it for future reference, then clone it and install dependencies

git clone https://github.com/oceans404/vc-gated-website
cd vc-gated-website
npm i

2. Create a .env file by copying my sample

cp .env.sample .env;

Update the REACT_APP_VERIFICATION_SERVER_URL variable to your hosted server url from step 7: https://github.com/oceans404/vc-verifier#7-hosting-the-server-optional

Or, if you haven't hosted the server using Render, set REACT_APP_VERIFICATION_SERVER_URL="http://localhost:3000" because that's where the you are running the server locally. Don't set REACT_APP_VERIFICATION_SERVER_URL to your ngrok forwarding address or you'll face CORS errors.

3. Start the frontend

npm start

Visit http://localhost:8080/

4. Optional: host your website using Fleek

I've documented a similar hosting process here: https://github.com/oceans404/fullstack-sockets-demo#deploy-your-frontend

Logic flow

This frontend interacts with my verifier server to

About

A VC-gated (verifiable credential gated) page; you need to hold a Polygon ID KYCAgeCredential with a birthday before 2023 for access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published