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:
Create a new directory and initialize a Node.js project:
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
Install dependencies:
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.
Last updated