1.0.17 • Published 7 years ago

@daneroo/server v1.0.17

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

@daneroo/server

Use these building blocks to wire up an express or graphql server

TODO

Express

This should address:

  • singleton or factory
  • injection of configuration (port,cors,requestLogger)
  • Mounting/assembling other express.Router's, static middlewaer
  • authentication and cors can be global, or specific to routers
  • standard routes: health (status), version
  • default route for 404, perhaps 500 error handler

GraphQL

Usage

const server = require('@daneroo/server');

server.express().start()