Skip to content

A simple Next.js app to demonstrate Myinfo business Verifiable Credential request and verification.

Notifications You must be signed in to change notification settings

singpass/myinfobiz-demo-app-vc

Repository files navigation

MyInfo Corporate VC Demo App

This app serves as a Proof-of-Concept for the issuance and verification of Corporate Verifiable Credentials through the use of the MyInfoConnector & MyInfoVcVerifier packages.
Disclaimer: This application is not production ready and should only be used as a reference and a proof-of-concept.


Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Local Development
  3. Testing
  4. Deployment
  5. More Screenshots

About The Project

Product Screenshot

Product Screenshot

Sample Verifiable Credential

Product Screenshot

(back to top)

Local Development

Refer to the development documentation for more details.

Prerequisites

This is a Next.js project bootstrapped with create-next-app. To get started, install the following packages:

Before setting up the project, please create an ethereum wallet by following the steps under the ethereum guide*.

*Disclaimer: all ethereum wallet addresses and private keys listed as examples are publicly available and should NOT be used for any other purposes other than for the demonstration of this app.

Initial Setup

  1. Clone the project
git clone [email protected]:singpass/myinfobiz-demo-app-vc.git
  1. Make a copy of ./.env.local.example and rename it to .env.local.

  2. Replace the values found in .env.local as required. Refer to configurations docs for more information on the specific configuration that is needed.

  3. Replace the sample encryption and signing keys found at ./cert

  4. Install dependencies

# clean install
npm ci
  1. Start development server on your local
# reloads UI on code change
npm run dev

(back to top)

Testing

This project leverages Jest for unit tests, and Cypress for e2e tests.

To run unit tests with Jest:

npm run test:unit

To run e2e tests with Cypress:

npm run test:e2e

Refer to the sample verifiable credential for testing verify function of this demo app.

(back to top)

Deployment

Refer to the deployment documentation for more details.

Mimicking production on local

  1. Build the app
npm run build
  1. Serve the app on a mimicked production environment
npm run start

Deploying on external servers

More Screenshots

Default Loading Success Failed
Request image image image image
Verify image image image image

About

A simple Next.js app to demonstrate Myinfo business Verifiable Credential request and verification.

Topics

Resources

Stars

Watchers

Forks