Tuesday 25 December 2018

Server-side TypeScript framework

Hi guys!I am currently working on the server-side TypeScript framework. My team already widely use this framework in various e-commerce and ERP projects. Structure and semantic were inspired by other popular frameworks like Spring and ASP.NET.Currently, there are a lot of possibilities:Describing routing using controllers and decoratorsPowerful, full-typed Dependency InjectionIncoming data validation (using AJV) with various set of decoratorsTypeORM integration (Repositories injection, Transactional support using CLS)Extendable JWT-based authenticationAll parts of the framework are fully typed and integrated with the whole infrastructure.For the best performance, under the hood, Fastify is used. The framework is declarative, but also avoids using decorators were it's possible. So, it's keep everything simple, clean and minimalistic.Example:@Controller('foo') export class FooController extends IController { @RoutePatch('{id}') bar(id: string, payload: FooDTO) { ...some updates.. return Ok(); } } So, as you see, there no need to provide any additional param decorators for injection data from the HTTP request. It's just a small controller overview, there are a lot of other possibilities.Features coming soon:AOPGRPC integrationGraphQLCLIand more...From the beginning, the framework was designed as opensource. I really need your feedback guys, it's very important for me!Here the few links:Github - ODIDocs - ODIAlso, we aim to support Deno in the future.Thanks for your time! :)

Submitted December 25, 2018 at 03:20PM by Wrapy

No comments:

Post a Comment