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
Refer to the development
documentation for more details.
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.
- Clone the project
git clone [email protected]:singpass/myinfobiz-demo-app-vc.git
-
Make a copy of
./.env.local.example
and rename it to.env.local
. -
Replace the values found in
.env.local
as required. Refer to configurations docs for more information on the specific configuration that is needed. -
Replace the sample encryption and signing keys found at
./cert
-
Install dependencies
# clean install
npm ci
- Start development server on your local
# reloads UI on code change
npm run dev
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.
Refer to the deployment
documentation for more details.
- Build the app
npm run build
- Serve the app on a mimicked production environment
npm run start
Default | Loading | Success | Failed | |
---|---|---|---|---|
Request | ||||
Verify |