microdose

microdose is a micro-service optimized Node framework written in TypeScript. It is suitable for building robust micro-service APIs. You can think of it as microdosing for the servers.

Oh, it is also the fastest Node.js framework on this planet. See benchmark results here.

Installation

$ npm i microdose

TypeScript is optional but highly recommended to use with microdose. Note that if you choose not to use TypeScript, you will require a transpiler like Babel.js to use decorators.

Basic App

import {
  uApp,
  uMethod,
  uRequest,
  uResponse,
  uRouter
} from 'microdose'

@uRouter()
class App {

  @uMethod.get()
  helloWorld (req: uRequest, res: uResponse) {
    res.send('Hello world!')
  }
}

const config = {
  port: 3000
}

uApp.bootstrap(App, config)
  .then(() => console.log('\nListening on port:', config.port))
  .catch(err => console.error(err))

results matching ""

    No results matching ""