This is an API wrapper meant to circumvent the issue of LTA Datamall not supporting HTTPS.
- Install Node.js
- Clone this repository
- 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=...
- Run these commands in the repository:
npm install npm install -D npm run build npm start
- Modify the following lines in
Dockerfile
accordingly:# Change these as necessary ENV PORT=80 ENV SSL_CERT="" ENV SSL_KEY=""
- Execute
docker run
or whichever preferred Docker "startup" command.