Giter Site home page Giter Site logo

oceans404 / generate-frontend-polygon-id-issuer Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 13.0 117 KB

Build your own Polygon ID Issuer website to easily issue claims to users

Home Page: https://generate-frontend-polygon-id-issuer.vercel.app/

Shell 2.04% HTML 4.82% JavaScript 84.71% CSS 8.44%
polygon polygon-id platform-api polygon-id-platform-apis

generate-frontend-polygon-id-issuer's Introduction

Generate Your Own Polygon ID Claim Website in 5 minutes

Self-service claim issuer template by Steph oceans404

Tired of manually creating and sending Polygon ID claim links one by one? Here's a claim site I created for my Polygon ID AboutMe schema so that users can self-service claim. It's totally reusable code. All you have to do is modify the email, password, and schema id in the .env file, then deploy your personalized site to Vercel. site

204710496-3721992a-c3f2-45da-bdb3-fc35c9e99e49

Caveat: Because your users are essentially issuing your claims to themselves, they are not truely VERIFIED credentials. For example, I don't actually have 4 pets, but I was able to claim that I have 4 because no one verified this. Use this repo to spin up Issuer playgrounds for your Polygon ID apps, but understand that a real-world verifier probably would not trust a self-service issuer that works without some type of checking logic before allowing a user to claim.

Getting started

Pre-reqs

  • ✅ Install Node and npm
  • Sign up for a Polygon ID account and create an Issuer (takes about 2 minutes total)
  • ✅ Read the Triangle of Trust to understand the relationship between an Issuer, Holder, and Verifier. This repo generates an issuer (website) so a holder (user) can claim identity-based information.

✰ Star and fork this repo, then git clone your fork of the repo

https://github.com/{YourGithubUsername}/generate-frontend-polygon-id-issuer.git
cd generate-frontend-polygon-id-issuer
npm i 
cp .env.example .env;

Open the newly created .env file and replace the values with your Polygon ID email, password, and schema ID.

VITE_POLYGON_ID_EMAIL="[email protected]"
VITE_POLYGON_ID_PASSWORD="Your!0Very!1Secure2.Password!"
VITE_POLYGON_ID_SCHEMA_ID="77e48fa2-37e6-4818-b767-71588f6c0b73"

Schema ID

If you haven't created a schema yet, check out "Create a schema" in my node-polygon-id-platform-apis repo. This should only take a minute and you need a schema so you have a schemaID for your frontend to use to fetch the schema and display correct form fields for each attribute.

If you already created a Schema, you can find out a schema's id on the "Created Schemas" page of Polygon ID Platform by clicking the schema and grabbing the id from the schemaID parameter in the url.

Find a Schema ID-high

Run your site locally

npm run dev

(Optional) Add and commit any visual changes you want to make.

Deploy your site with Vercel

Vercel makes it super quick and easy to deploy an app. Seriously. They didn't even pay me to say that. Go to the Vercel dashboard

  1. Click "Add New..." -> Project
  2. Click "Continue with Github"
  3. Import this project (generate-frontend-polygon-id-issuer)
  4. Configure Environment Variables to match your .env file
  5. Click "Deploy" and the result is your very own Issuer website

Screen Shot 2022-11-30 at 3 12 32 PM

generate-frontend-polygon-id-issuer's People

Contributors

oceans404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

generate-frontend-polygon-id-issuer's Issues

Add to the Schema Section that you need T/F for the frontend to load :)

Hey! Was following along with the tutorial as prep before The Pit, one change is to just add that your Schema has to be True / False to load your frontend correctly. If you want to adjust the Schema type, you'll need to redo some of the frontend inputs to work. Nothing major or even minor, just a suggestion!

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.