opengovsg / askgovsg

Answers from the Singapore Government
https://ask.gov.sg
Other
16 stars 6 forks source link
hacktoberfest

AskGov

Answers from the Singapore Government

Tech Stack

Front-end

Back-end

Prerequisites

Node, NPM

Git

Docker

direnv

Optionally VSCode with extension ESLint

Optionally DBeaver to view database with GUI

Setup

image

Running in Development

Common Problems

SQL Related

Node.js Related

OpenSearch Related

SQLite-related error during npm i

npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm ERR!   LIBTOOL-STATIC Release/nothing.a
npm ERR!   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c
npm ERR! Failed to execute 

API Endpoints

Base Url - http://localhost:6174/api/v1

Agencies

Auth

Users

Posts

Answers

Tags