Coder Social home page Coder Social logo

fullstack-polygon-id-vc-gated-dapp's Introduction

This is a template for creating your own VC Gated Dapp

This template spins up a dapp that is

  • ✅ Built with the popular React JS library
  • ✅ VC Gated with a Polygon ID KYCAgeCredential
  • ✅ Fully connected with to all EVM chains including Polygon zkEVM Testnet and Polygon Mumbai Testnet RainbowKit Wallet
  • ✅ Beautifully styled with configurable components and icons from the Chakra UI library
  • ✅ Ready to interact with any smart contract thanks to working read and write examples from a Polygon zkEVM Testnet demo smart contract with wagmi hooks

Use this template as a base to bootstrap a Polygon hackathon project FAST 🏃🏻‍♀️ so you can focus on your dapp's business logic & building the value layer of the internet. 🚀

Love or hate something about this template? Let me know by tweeting your feedback

Getting started with the template

Node requirement: node v20.2.0

Here's how to check your node version.

node -v

If you're not running this version, you can switch your version with nvm

Setup

  1. Visit the template repo https://github.com/oceans404/fullstack-polygon-id-vc-gated-dapp/tree/main and click "Use this template" to create a new repo

  2. Get a KYCAgeCredential Verifiable Credential - follow instructions here

  3. Follow server setup instructions

https://github.com/oceans404/fullstack-polygon-id-vc-gated-dapp/tree/main/server

  1. Follow frontend setup instructions

https://github.com/oceans404/fullstack-polygon-id-vc-gated-dapp/tree/main/frontend

Default localhosts

  • Frontend: localhost:3000
  • Server: localhost:8080

Here's the fullstack vc gated dapp this template spins up

Welcome page: In order to see the dapp, you need to prove your access rights. Click the "Prove access rights" button

Screenshot 2023-06-23 at 10 51 19 AM

A modal with a QR code appears. Scan this QR code with your Polygon ID mobile app. Note: you must hold a KYCAgeCredential with a birthday before this year. Here's how to get the KYCAgeCredential VC

Screenshot 2023-06-23 at 10 51 30 AM

If you successfully complete age verification, you'll see a success message, then be redirected to the dapp.

Screenshot 2023-06-23 at 10 51 57 AM

This is the Dapp page that you see once you've proved access rights. It's set up with a RainbowKit wallet connector and has read and write to smart contract examples.

Screenshot 2023-06-23 at 10 52 19 AM

fullstack-polygon-id-vc-gated-dapp's People

Watchers

 avatar

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.