Home

Awesome

A kickass :muscle: web server :scream_cat: with all the bells :bell: and whistles :sparkles:

Coverage Status Known Vulnerabilities Version Downloads

Uses hapi loaded with most important plugins (Boom, Vision, Inert, et al.) and dynamically configures your routes

Features

How to install

npm install serverful

How to use

Use it in your app

Load module and start a server

const Serverful = require('serverful')

const server = new Serverful()
server.start()

Available environment variables

VariableDescriptionRequiredDefault value
NAMEThe name of the app.falseundefined
VERSIONThe version of the app.falseundefined
PORTThe port to be used by the HTTP server.false3000
API_KEYSThe secret keys that should be used when securing endpoints.falseundefined
SO_TIMEOUTTCP socket connection timeout.false120000
BASE_PATHBase path to be prefixed to all available endpoint paths.false/
PING_PATHEndpoint path for pinging app.false/ping
HEALTHCHECK_PATHEndpoint for checking app health.false/healthcheck
LOG_LEVELThe log level verbosity.falseinfo
ENVIRONMENTThe environment the app is running on.falseundefined
ROLLBAR_API_KEYThe server API key used to talk with Rollbar.falseundefined

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

License

Read the license for permissions and limitations.