Skip to content

An API wrapper for LTA Datamall to circumvent the lack of support for HTTPS

License

Notifications You must be signed in to change notification settings

apprexp/ltadatamall-wrapper

Repository files navigation

LTA Datamall Wrapper

FOSSA Status Total alerts Language grade: JavaScript Known Vulnerabilities GuardRails badge Module LTS Adopted' Contributor Covenant Commitizen friendly semantic-release OSS Lifecycle Renovate Prettier

This is an API wrapper meant to circumvent the issue of LTA Datamall not supporting HTTPS.

Usage (local machine)

  1. Install Node.js
  2. Clone this repository
  3. If you want this wrapper to handle SSL directly (e.g. no proxy), run these commands (substituting ... with the your own values):
    # Linux
    export SSL_CERT=...
    export SSL_KEY=...
  4. Run these commands in the repository:
    npm install
    npm install -D
    npm run build
    npm start

Usage (Docker)

  1. Modify the following lines in Dockerfile accordingly:
    # Change these as necessary
    ENV PORT=80
    ENV SSL_CERT=""
    ENV SSL_KEY=""
  2. Execute docker run or whichever preferred Docker "startup" command.

License

FOSSA Status

About

An API wrapper for LTA Datamall to circumvent the lack of support for HTTPS

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published