Winter is a layer over the express framework to provide some extra features, like dependency injection, convention over configuration and declarative endpoints.
npm install winter-coreYou must to have installed some libraries before:
```
$ npm i -g typescript ts-node
Then install the framework:
``
$ npm i -s winter-core
``
src
|- server.ts
|- test.controller.ts
package.json
`
import { Controller, Get } from 'winter-core'
@Controller('test')
export class TestController {
@Get('/:id')
getAll(id:string):Promise
return Promise.resolve(your id is ${id})`
}
}
`
import { Winter } from "winter-core";
import { TestController } from "./test.controller";
@Winter({
controllers: [
TestController
]
})
export class Server {
}
`
```
$ ts-node src/server.ts