Code Monkey home page Code Monkey logo

developer-portal's Introduction

Developer Portal

The Worldcoin Developer Portal provides tools to interact with the World ID Protocol. Along with IDKit, it's the fastest way to get started with proof of personhood ๐Ÿš€

๐Ÿ“„ Documentation

All the technical docs for the Worldcoin SDK, World ID Protocol, examples, guides can be found at https://docs.worldcoin.org/

๐Ÿง‘โ€๐Ÿ’ป Developing Locally

The Developer Portal uses some external services to operate. You do not need all the real credentials to run locally.

  1. Copy the .env.test into a local env file
cd web/
cp .env.test .env
  1. Edit any environment variables for which you have real credentials.
  2. AWS access (for KMS) is required to run the Developer Portal locally. KMS is used to sign/encrypt, particularly for Sign in with World ID. You will need to have AWS credentials in your env with relevant permissions to run KMS. Here is an IAM sample policy for this.
    1. If you are a core contributor with AWS access to TFH, follow the instructions here instead.

Starting the app

The following command will start two containers with the Postgres database, and Hasura server. Additionally, it will run the Next.js app from the /web directory. All Hasura migrations and metadata are automatically applied.

docker compose up --detach
cd web && pnpm dev

Updating Database Model

If you need to update anything related to the database (model, permissions, events, etc.) the easiest way is with the Hasura console.

  1. Follow instructions to install the Hasura CLI.
  2. Launch the Hasura console.
    cd hasura
    hasura console --endpoint http://localhost:8080 --admin-secret secret!

Warning Make sure to only make the changes in the Hasura console (usually http://localhost:9665), if you make changes on http://localhost:8080the migrations will not be generated and your changes will be lost.

๐Ÿ’ก The admin secret in stored in docker-compose.yml file in the root of the repo.

developer-portal's People

Contributors

andy-t-wang avatar paolodamico avatar igorosip0v avatar michaelfurutin avatar maxpetretta avatar denis-bushaev avatar 0xpenryn avatar pdtfh avatar dependabot[bot] avatar m1guelpf avatar snyk-bot avatar bdoof avatar lukejmann avatar gvidon avatar orekav avatar ph3t avatar biomark3r avatar ottodimi avatar vikash-8090-yadav 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.