expresskit

Express support for Restkit. A toolkit for node servers that adds Decorators, Rules, and Injectables.

Usage no npm install needed!

<script type="module">
  import expresskit from 'https://cdn.skypack.dev/expresskit';
</script>

README

Express support for Restkit.

Install

npm install expresskit --save

Start

import {Expresskit} from 'expresskit';

Expresskit.start();

Use

import {Route, Param, Query, Header, Body} from 'expresskit';

export class UserRouter {
  @Route('PUT', '/user/:id')
  public updateUser(@Param('id') id: string, @Query('foo') foo: string, @Header('Authorization') auth: string, @Body() update: any) {
  }
}

Keep Reading

Routing

Response

Middleware

Resources

Rules

DTOs

More Links

Restkit Seed Project

Github

Issues

NPM

Twitter