Replies: 3 comments 3 replies
-
Overall I think this is a great idea! It just needs a champion with the time and vision to make it a reality |
Beta Was this translation helpful? Give feedback.
-
This sounds amazing, I'm exactly at the situation you're describing. Though we don't have to look at nestjs for direction. It's an amazing framework, seriously. But when it comes to it, it's built using the mental model for angular and C# developers, and it won't be in our favor if folks start comparing blitz and nestjs. Lately I've been getting into effect-ts really hard, it's beyond amazing. I'm using it currently with blitz and it's a dream. There are other new interesting consequences to a push like you're outlining. I'm not invested enough to champion this, but I would like to help and be kept in the loop for this |
Beta Was this translation helpful? Give feedback.
-
I've been using NestJS for a while now and this would be an intresting thing to see but Nest follows the Angular model and despite Blitz pivoting towards a more framework agnoistic approach I feel these changes would be better suited as packages for the Blitz ecosystem or features for BlitzRPC instead of a new layer. |
Beta Was this translation helpful? Give feedback.
-
Recently I have been speaking with @siddhsuresh about bringing an API that is similar to NestJS to BlitzJS. He has asked me to raise an RFC so that the community could bring about any ideas or comments they have surrounding this topic. Also it's inspired by #1841.
Now I do wish to make clear the difference between the two threads.
Now don't get me wrong. What NextJS supplies for the current API endpoint is ok. It's just that what you can do with NestJS is that it's typically used for those use cases where heavy business logic is being implemented. Every developer that I have spoken to on discord who has outgrown NextJS API has reached for NestJS and been able overcome obstacles due to NextJS.
If anyone has used the microservices version of nestJS. This is pretty much what I am advocating for. I think it should cover the majority of cases.
Finally, I came across this which should showcase how powerful having the same types across an FE and api BE could be:
Also it could also point to ideas on how to start? Maybe implement a simple version of express and go from there? 🤔
Now over to you. What do you think? If you are using NestJS along with your BlitzJS project. I'd definitely welcome your thoughts too. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions