Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Notarise-gov-sg/verify.gov.sg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.gov.sg

Verify certificates from any government agencies.

Prerequisites

NodeJS lts/fermium (v.14.15.0). If you're using nvm, run nvm use to ensure you're using the same Node version in local and in Netlify's runtime.

Getting Started

Ensure environment variables are set

To run locally, ensure the required environment variables are set in .env. Refer to .env.example:

NEXT_PUBLIC_GTAG_ID=G-xxx
NEXT_PUBLIC_WOGAA_ENV=development
NEXT_PUBLIC_API_VERIFY_URL=https://stg.api.verify.gov.sg/verify
NEXT_PUBLIC_INFURA_API_KEY=xxx
NEXT_PUBLIC_NETWORK_NAME=ropsten
NEXT_PUBLIC_WHITELISTED_ISSUERS=gov.sg,openattestation.com

Run a local instance

npm i
npm run dev

Run a production instance

npm run build
npm start

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.3%
  • JavaScript 11.2%
  • CSS 3.5%