1.1.2 • Published 7 years ago

winter-core v1.1.2

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

Winter

Winter is a layer over the express framework to provide some extra features, like dependency injection, convention over configuration and declarative endpoints.

Project status

The project it's a provee of concept.

Quickstart

Install the package

You must to have installed some libraries before:

$ npm i -g typescript ts-node

Then install the framework:

$ npm i -s winter-core

The source tree

src
 |- server.ts
 |- test.controller.ts
package.json

Create a test.controller.ts

import { Controller, Get } from 'winter-core'

@Controller('test')
export class TestController {

    @Get('/:id')
    getAll(id:string):Promise<string> {
        return Promise.resolve(`your id is ${id}`)
    }
}

Create server.ts

import { Winter } from "winter-core";
import { TestController } from "./test.controller";

@Winter({
    controllers: [
        TestController
    ]
})
export class Server {

}

Excecute the code

$ ts-node src/server.ts
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago