Sign inSign up

microbrewit/microbrewit-logserver

By microbrewit

•Updated over 10 years ago

A simple Hapi.js based log server that the microbrewit frontend can log events to.

Image
0

368

microbrewit/microbrewit-logserver repository overview

⁠microbrewit-logserver

Build Status Coverage Status Dependency Status

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.

⁠License

MIT. See License file.

⁠Installation

Clone repository: git clone [email protected]:Microbrewit/microbrewit-logserver.git.

Install production dependencies: npm install --production. Install all dependencies: npm install

⁠Running

To run without supervisors: npm start.

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.

⁠Documentation

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.

⁠Testing

Currently no tests. Soon to come.

⁠Docker

See microbrewit logserver on docker hub⁠.

Tag summary

Content type

Image

Digest

Size

266.8 MB

Last updated

over 10 years ago

docker pull microbrewit/microbrewit-logserver