0.0.6 ā€¢ Published 9 months ago

speed-decorators v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago