@daneroo/server

1.0.17 • Public • Published

@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()

Readme

Keywords

none

Package Sidebar

Install

npm i @daneroo/server

Weekly Downloads

3

Version

1.0.17

License

ISC

Unpacked Size

5.69 kB

Total Files

4

Last publish

Collaborators

  • daneroo