@gasbuddy/service

    10.8.2 • Public • Published

    @gasbuddy/service

    Greenkeeper badge

    An opinionated framework for building configuration driven services - web, api, or job. Uses swagger, pino logging, express, confit, ES7 and tap.

    Basically, this module is in charge of instantiating a bunch of application dependencies like:

    • database connections
    • swagger clients
    • custom trusted certificates

    and then loading express middleware

    • body logging
    • json parsing
    • error handling
    • async handler support
    • hosted swagger documents/handlers
    • web routes

    Our services (like this module) use ES7 including async/await via babel. Where necessary, we accomodate that in this module. For example, shortstop handlers in confit have the ability to refer to the transpiled directory in production and the original directory in development.

    This needs lots more documentation... Just a start.

    Install

    npm i @gasbuddy/service

    DownloadsWeekly Downloads

    169

    Version

    10.8.2

    License

    MIT

    Unpacked Size

    316 kB

    Total Files

    60

    Last publish

    Collaborators

    • msimeon
    • aureliamoore
    • djmax