Setup Development Environment

Auth Server Setup


  1. Clone didPass repositoryarrow-up-right then checkout to development branch

git clone https://github.com/GDP-ADMIN/didPass.git
  1. Copy auth-server .env.example as .env and Set Environment Variables in .env

Set Environment Variables


  1. Setup Auth0

    1. Create new Applicationarrow-up-right, select Native

      Auth0 Create New Application
    2. Select React Native as the Native SDK

    3. Go to your application (from step 1 & 2) settings on Auth0 sitearrow-up-right

    4. Copy Domain to APP_ISSUER value and JWKS_URL value

      APP_ISSUER=https://<placeholder(Auth0 Application Domain)>/
      JWKS_URL=https://<placeholder(Auth0 Application Domain)>/.well-known/jwks.json
    5. Copy Client ID to APP_AUDIENCE value

      APP_AUDIENCE=<placeholder(Auth0 Application Client ID)>
  2. Setup Pinata

    1. Create new API KEYarrow-up-right, check the Admin option and set the Key Name (any name)

      Pinata Create New Key
    2. Click Create Key Button

    3. Copy the API Key on pinata's site to PINATA_API_KEY

      PINATA_API_KEY=<placeholder(Pinata API key)>
    4. Copy the API Secret on pinata's site to PINATA_SECRET_API_KEY

      PINATA_SECRET_API_KEY=<placeholder(Pinata Secret API key)>
  3. Run ngrok ngrok http 3000, copy forwarding url and fill NEXT_PUBLIC_URL value.

Here is the full .env

Last updated