deepkit / deepkit-framework

A new full-featured and high-performance TypeScript framework
https://deepkit.io/
MIT License
3.2k stars 123 forks source link

NestJS #204

Closed Noido closed 2 years ago

Noido commented 2 years ago

Hi how can i use it with NestJs ?

Thanks

timvandam commented 2 years ago

What deepkit feature are you trying to use? You could use the whole deepkit framework as a replacement to nest. You could also use individual deepkit libraries if you prefer that.

You could for instance create a nest pipe and interceptor to do (de)serialization with @deepkit/type

Noido commented 2 years ago

Hello @timvandam , I want use deepkit orm in place of prisma

Use all framework as replacement to nest ? Hum problem got like 0 samples , tutorials or real sample with that

marcus-sa commented 2 years ago

@Noido you can easily use the Deepkit ORM if you want. You'd have to try it out as a part of trial and error though because the lack of documentation, but it is worth it. To answer your question, yes Deepkit has an API similar to NestJS, but it's just better in every aspect, especially the RPC library. It enables such an amazing DX that it's difficult switching back to NestJS after getting used to it. Let's not get started on the runtime type system. Some of the most aspiring work I've seen for TypeScript since Deno. https://deepkit.io/library/orm

Noido commented 2 years ago

@marcus-sa Yes but it s the problem 0 docs , 0 sample, 0 tutorial it's too complicated for start a project like that

marcj commented 2 years ago

@Noido You can find the docs here: https://deepkit.io/documentation. We plan to publish a lot of examples in the future, but for now we plan on stabilising the API and fix bugs, and if done we increase the resources put into documentation and marketing material like tutorials. We do not provide NestJS integration docs as we want to replace it entirely and not co-exist or integrate with it.