Frontend for Watchdog (previously NewsdiffHK) project.
The server depends on packages. The serving scripts needs to build into bundle before running. Run these commands.
npm install
npm run buildTo start the server:
npm run startThe server will prompt you to enter the API_BASE_URL. To suppress the prompt, you may also add API_BASE_URL to the environment like this:
API_BASE_URL=http://api.server.com:3000/api npm run startReplace http://api.server.com:3000 with the appropriate host and port number.