# Project Setup

**What We Are Doing:**

* Initializing a Node.js/Express project.
* Installing necessary dependencies.
* Preparing the base structure for integration with the Issuer and Verifier.

**Why:** We need a backend server that:

* Interacts with the Issuer to request credential issuance.
* Interacts with the Verifier to request verification.
* Serves a frontend for user input and QR code display.

**Steps:**

1. Create a new directory and initialize a Node.js project:

```bash
    mkdir -p evdi-tutorial/{src,public} && \
    touch evdi-tutorial/src/{index.js,issuer-routes.js,verifier-routes.js,authorization-routes.js} \
      evdi-tutorial/public/{index.html,dashboard.html} \
      evdi-tutorial/.env
    cd evdi-tutorial
    npm init -y
```

Project structure:

```
 evdi-tutorial/
   src/
     index.js
     issuer-routes.js
     verifier-routes.js
     authorization-routes.js
   public/
     index.html
     dashboard.html
   .env
```

2. Install dependencies:

```bash
 npm install express dotenv @empe/verifier-client @empe/identity jsonwebtoken node-fetch
```

Next, we will deploy an Issuer service via the One-Click Deployment portal.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.empe.io/getting-started/tutorial/project-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
