athahersirnaik / myinfo-demo-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyInfo Demo App

The demo application meant to illustrate how to integrate your application with MyInfo APIs.

Contents



Quick Start

1.1 Install Node and NPM (skip this step if you have NPM installed)

For the demo application to run, you will need to install Node and NPM.

Follow the instructions given by the links below depending on your OS.

1.2 Run NPM install

Run the following command in the folder you unzipped the application:

npm install

1.3 Start the Application

Execute the following command to start the application:

Test with Payload Encryption & PKI Digital Signature

npm start

Or, test without Payload Encryption & PKI Digital Signature

npm run sandbox

Access the Application on Your Browser You should be able to access the sample application via the following URL or click here:

http://localhost:3001

Demo Screenshot Demo Screenshot


How To Use

Login with SingPass

Click RETRIEVE MYINFO and select the test user ID from the Mock Pass.

Note: refer to the Personas on the NDI Developer and Partner Portal for the test accounts to be used.


MyInfo Connector NodeJS

This demo application is using the myinfo-connector-nodejs library. MyInfo Connector aims to simplify consumer's integration effort by providing an easy to use Javascript library to integrate into your application.

Troubleshooting

Change the logging level for debugging within the library.

Edit the ./config/config.js , change the DEBUG_LEVEL value to debug.

IMPORTANT NOTE: debug mode should never be turned on in production

OpenSSL Installation [For Windows only]

Skip this step if you have OpenSSL installed.

For windows user, you are required to install the OpenSSL library in your computer in order to use myinfo-connector-nodejs library. Please refer to the OpenSSL installation guide here.



Reporting Issue

You may contact our support for any other technical issues, and we will respond to you within 5 working days.

About


Languages

Language:JavaScript 71.0%Language:CSS 18.2%Language:HTML 6.1%Language:Less 4.4%Language:Pug 0.3%