# Setup Development Environment

## Issuer Demo Setup

***

1. Clone [didPass repository](https://github.com/GDP-ADMIN/didPass) then checkout to `development` branch

```
git clone https://github.com/GDP-ADMIN/didPass.git
```

2. Copy issuer-demo's `.env.example` as `.env` and [Set Environment Variables](#set-environment-variables) in `.env`

## Set Environment Variables

***

1. Run [Redis](https://redis.io/docs/getting-started/)
2. Fill `REDIS_HOST`, `REDIS_PASSWORD`, and `REDIS_PORT` value

<pre><code><strong>REDIS_HOST="127.0.0.1"
</strong>REDIS_PASSWORD=""
REDIS_PORT="6379"
</code></pre>

3. Please ask developer team for `ISSUER_PRIVATE_KEY`

```
ISSUER_PRIVATE_KEY="<placeholder(Issuer Private Key)>"
```

4. Run ngrok `ngrok http 3000`, copy forwarding url and fill `NEXT_PUBLIC_URL` value.

```
NEXT_PUBLIC_URL="<placeholder(public server url)>"
```

## References

***

1. [Issuer SDK Guides](https://gl-docs.gitbook.io/internal-didpass-developers-guide/issuer/issuer-sdk)
2. [Google Cloud CLI Setup](https://github.com/GDP-ADMIN/didPass/wiki/How-to-install-issuer-sdk-staging)
