mildronize / mildjs

(Moved to https://github.com/mildjs/mild) A simple library for creating structured and organized controller and service with class-based design. It also provides basic decorators usage in Express using Typescript

Home Page:https://mildronize.github.io/mildjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MildJS


Moved repo to mildjs/mild




A simple library for creating structured and organized controllers and services with class-based design. It also provides basic decorators usage in Express using Typescript

Philosophy: Provide tools for creating lightweight framework for Express app. To be easy to integrate with any kind of dependency injection tools, any service providers.

However, it focus on low dependency as much as possible. The tools should help to define the stucture of code for testing purpose, but also flexible for add other tools.

Inspiration from: Nestjs, Routing Controllers, OvernightJS


Features

  • Express Router decorators: Get, Post, Put, Delete, Use, Controller
  • Express Middleware
    • Use for Express Middleware
    • Support multiple middleware, e.g. @Use(validateAuth, validateRole) (validateAuth, validateRole is the custom middlewares)
  • Basic HttpException
  • Basic middleware for validating the request, validateType using class-validator
  • built-in http-status-codes

About

(Moved to https://github.com/mildjs/mild) A simple library for creating structured and organized controller and service with class-based design. It also provides basic decorators usage in Express using Typescript

https://mildronize.github.io/mildjs/


Languages

Language:TypeScript 95.3%Language:JavaScript 4.7%