Demo Application Setup
Last updated
Last updated
This guide demonstrates how to set up the sample demo Singpass Application built on React framework and Javascript API as server-side code.
To begin the setup, you’ll need to:
In Visual Studio Code, open a new terminal. Clone the Singpass Demo App Frontend repository.
Once the project is created, open the cloned project directory.
Use npm install
command to install the project dependencies.
Use npm run start
command to run the React application. The application should be loaded up automatically through the web browser http://localhost:3000.com. The demo project calls the token endpoint through an external API hosted on a separate server.
Open a new Visual Studio Code window, then open a new terminal. Clone the Singpass Demo App Sever Side Code repository.
Deploy both the frontend code and server-side code separately to your desired hosting platform. Refer to this on how to deploy a mobile/web application. The sample server-side code is hosted on Netlify as an API function, hence there is a Netlify folder created as per Netlify's requirement. You may need to refer to the documentation of the different hosting providers when deploying your application.
Setup the
If you already have it, proceed to