Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or use NestJS to do this in the node ecosystem instead of the PHP ecosystem.


Using nestjs/typeorm/type-graphql for my current project. I have to admit it is quite refreshing after all of the yaml and docblock annotations of the Symfony/Doctrine/APIPlatform ecosystem.


I'm using Nestjs / typeorm for a mobile app backend, and I must say I am enjoying it a lot.

Previously I would use symfony / doctrine, or some other PHP / ORM combo, but the TypeScript environment is much more to my liking.

This will not convince anyone who dislikes node.js, but if anyone here is considering a node.js backend, give Nestjs a try. I did some tests and found it preferable than pure Express, Sails, or Ember.

Edit: I agree with softwarelimits comments. I absolutely hate synfony/doctrine comment annotations. TypeScript decorators are a better solution.


This doesn't seem to do as much as API Platform though?

In API Platform you can just define an entity and it will automatically expose CRUD endpoints for that entity [1].

While in NestJS it seems you still need to define each action manually [2].

It's too bad cause I'm really looking for something like API Platform in Typescript.

[1] https://api-platform.com/docs/distribution/#bringing-your-ow...

[2] https://docs.nestjs.com/controllers




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: