A simple Hapi.js based log server that the microbrewit frontend can log events to.
The log server is implemented in Node.js and uses some ES6 features. Node >= 5 required. It uses Hapi.js as its framework of choice of ease of development.
MIT. See License file.
git clone firstname.lastname@example.org:Microbrewit/microbrewit-logserver.git.
Install production dependencies:
npm install --production.
Install all dependencies:
To run without supervisors:
Use forever or something similar if you want to run the program continuously even when it crashes. Better yet, use your OS' inbuilt supervisor. For example Systemd.
A docker image for running the log server in a container is forthcoming.
To run in dev mode use:
npm run watch-source.
The very simple API is automatically documented with Swagger based on the routes and Joi validators. Documentation can be found at localhost:8080/documentation after you start the server. The host and port may differ if you've set the environment variables.
Currently no tests. Soon to come.