Typescript - Decorators - IoC - Dependency Injection
An adaption of the express framework working with typescript decorators. Implements dependency injection to help structure a server created with it. (A way worse version of nestjs)
@Route({
basePath: '/foo'
})
export class BarRoute {
// Automaticlly sind websockets events when
// the property gets updated
@Live({ path: 'live' })
public liveData;
// Expose REST-Endpoint
@Endpoint()
foo() {return "bar";}
}
@Server({
routes: [BarRoute],
providers: [FooService]
})
class MyServer {}
Brige.bootstrap(MyServer);