1.1.2 • Published 6 years ago

winter-core v1.1.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 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

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago