DEV Community

Discussion on: Migrating API from Laravel to NestJS

Collapse
 
deepslam profile image
Dmitry Ivanov

Hello!
I've worked with Laravel for about 3 years and I love it. But exactly as you, I wanted to work with Node.JS. I had some approaches to learn Node, but I didn't really have a project, to begin with.
Right until now, today, I need to create an API. At first, I tried Loopback, but it seemed too complicated for me and has a mess in its documentation.
And then I looked at NestJS, and I like it. But working with it I realized how far and how beautiful Laravel really is in comparison with NestJS (I suppose with any JS framework).
Those TS decorators look really ugly (maybe I just didn't get used to working with them, it's just a first glance).
But I'm keeping on just because JS ecosystem is better and I want to work with it more.

Collapse
 
hzburki profile image
Haseeb Burki

Before you start, take a look at foalts.org/. I actually found it a couple of days ago. I really liked NestJS and shipped a v small service to production but I decided against using it for my main API.

The routing it provides really bugs me and is not at all suitable for my current API structure which I do not want to change. Another thing I don't like is the server-side validation and error handling. Laravel has really ruined me :P

Try FoalTS it's relatively simple and much more flexible. I have not had the time to try it out fully, but I think it will be a better fit (for me) than NestJS.

Collapse
 
deepslam profile image
Dmitry Ivanov

Thank you so much! I'll have a look :)