speed-decorators
v0.0.6
Published
<h1 align="center">Welcome to speeed Decorators 👋</h1> <p> <a href="https://www.npmjs.com/package/server-starter-decorator" target="_blank"> <img alt="Version" src="https://img.shields.io/npm/v/server-starter-decorator.svg"> </a> <a href="
Downloads
2
Readme
decorators for speed your express application
Install
npm i starter-decorator
Codes
@serverStarter
import { ServerStarter } from 'starter-decorator';
class App {
your Application configs
}
@ServerStarter(App, 5665)
class Server {}
@Route
class Controller {
@Route("/routePath", "get")
public index() {
//Your Controller logic
}
}
export default Controller
--- Application Class ---
import { Controller } from './path/to/Controller';
class App {
//others Application configs;
private routes() {
this.server.use(new Controller.index)
}
}
Author
👤 Anderson
- Twitter: @caraaleatoriu
- Github: @quantxz
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator