0.8.0 • Published 6 years ago

microdose v0.8.0

Weekly downloads
25
License
MIT
Repository
github
Last release
6 years ago

microdose

A feather-light JavaScript API framework for Node, written 100% in TypeScript, built for micro-services. microdose is microdosing for servers.

codebeat badge npm version

This package is production ready.

Documentation

Documentation can be found on here.

Hello World

src/server.ts

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

@uRouter()
class App {

  @uMethods.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))

Features

  • Leverages TypeScript decorators for a concise, intuitive application design
  • Can be used with standard express.js plugins

Installation

$ npm install microdose

Playground

Clone the repo from https://github.com/borislemke/microdose.

Install dependencies

$ npm install

Run the example

$ npm start

Visit http://localhost:3000 to see Hello World.

Future

  • Replace path-to-regexp with simpler custom alternative
0.8.0

6 years ago

0.7.5

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.42

7 years ago

0.6.41

7 years ago

0.6.40

7 years ago

0.6.39

7 years ago

0.6.38

7 years ago

0.6.37

7 years ago

0.6.36

7 years ago

0.6.35

7 years ago

0.6.34

7 years ago

0.6.33

7 years ago

0.6.32

7 years ago

0.6.31

7 years ago

0.6.30

7 years ago

0.6.29

7 years ago

0.6.28

7 years ago

0.6.26

7 years ago