0.0.6 ā¢ Published 9 months ago
speed-decorators v0.0.6
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