https://github.com/apprexp/ltadatamall-wrapper
An API wrapper for LTA Datamall to circumvent the lack of support for HTTPS
https://github.com/apprexp/ltadatamall-wrapper
Last synced: about 1 month ago
JSON representation
An API wrapper for LTA Datamall to circumvent the lack of support for HTTPS
- Host: GitHub
- URL: https://github.com/apprexp/ltadatamall-wrapper
- Owner: apprexp
- License: apache-2.0
- Created: 2019-11-25T08:58:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T19:17:06.000Z (7 months ago)
- Last Synced: 2024-10-29T21:23:18.367Z (7 months ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# LTA Datamall Wrapper
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fapprexp%2Fltadatamall-wrapper?ref=badge_shield)
[](https://lgtm.com/projects/g/apprexp/ltadatamall-wrapper/alerts/)
[](https://lgtm.com/projects/g/apprexp/ltadatamall-wrapper/context:javascript)
[](https://snyk.io/test/github/apprexp/ltadatamall-wrapper?targetFile=package.json)
[](https://dashboard.guardrails.io/default/gh/apprexp/apprexp.github.io)
[](http://github.com/CloudNativeJS/ModuleLTS)
[](code-of-conduct.md)
[](http://commitizen.github.io/cz-cli/)
[](https://github.com/semantic-release/semantic-release)

[](https://renovatebot.com)
[](https://github.com/prettier/prettier)This is an API wrapper meant to circumvent the issue of [LTA Datamall not supporting HTTPS](https://github.com/datagovsg/datagovsg-datasets/issues/544).
## 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):
```bash
# Linux
export SSL_CERT=...
export SSL_KEY=...
```
4. Run these commands in the repository:
```bash
npm install
npm install -D
npm run build
npm start
```## Usage (Docker)
1. Modify the following lines in `Dockerfile` accordingly:
```Dockerfile
# Change these as necessary
ENV PORT=80
ENV SSL_CERT=""
ENV SSL_KEY=""
```
2. Execute `docker run` or whichever preferred Docker "startup" command.## License
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fapprexp%2Fltadatamall-wrapper?ref=badge_large)