leemaynikoletos / vc-gated-website

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

Home Page:https://birthday-gated-website.on.fleek.co/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Verifiable Credential (VC) Gated Website

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

https://birthday-gated-website.on.fleek.co/


Languages

Language:JavaScript 83.1%Language:HTML 13.8%Language:CSS 3.1%