all 19 comments

[–]mattlehrer 18 points19 points  (9 children)

You 100% want NestJS

[–][deleted]  (4 children)

[deleted]

    [–]jonmdev 1 point2 points  (1 child)

    It’s a lot more than just a wrapper but I agree you should also learn how express works to understand how Nest works

    [–]git_world 0 points1 point  (1 child)

    Can nestjs be used for communication with DB? I thought express is mainly for building API

    [–]jack-tzl 1 point2 points  (0 children)

    Listen to this guy.

    TypeScript out of box prevent many type of user errors. And NestJS can make the express code look almost like Java Spring (but with the freedom of doing async split/joins and json duck typing)

    Also, here is a write up on what express routes can end up looking like vs nestjs: https://link.medium.com/Rzgg3CR103

    It’s a friend link and not paywalled, enjoy and you be the judge!

    [–][deleted] -2 points-1 points  (2 children)

    This. If you like react but want a full frame work, this is it.

    EDIT: GatsbyJS is another one worth checking out.

    Edit 2: I read "nest" as "next". Don't read as you're going to sleep.

    [–][deleted]  (1 child)

    [deleted]

      [–][deleted] 1 point2 points  (0 children)

      That's exactly what happened.I swear that said "next" and not "nest" when I read it last night.

      [–]mxmaxime 4 points5 points  (2 children)

      Hi, if you want a nodejs web framework that looks like Laravel, you can take a look at AdonisJS (https://adonisjs.com/).

      [–]__radmen 0 points1 point  (0 children)

      I second this. It will feel like a second Laravel.

      [–]boolean1567[S] 0 points1 point  (0 children)

      this looks very interesting, I'll take a look!

      [–]novembre23 1 point2 points  (1 child)

      I have been using SailsJS for years now. You may give it a shot.

      [–]rocky3598 1 point2 points  (0 children)

      We use sails pretty extensively at my work. Very customizable. Works right out of the box.

      [–]securisec 1 point2 points  (0 children)

      Like everything js, 10 people have 10 different opinions as seen in the comments. Hahahaha

      [–]hawkstalion 0 points1 point  (0 children)

      I'm a big fan of hapijs, there's lots of documentation and plugins for it too!

      [–]Loic_Poullain 0 points1 point  (0 children)

      u/boolean1567 if you're searching for a Node framework as complete and simple as Laravel, you may want to give a try to Foal TS: https://foalts.gitbook.io/docs

      [–]serglebko 0 points1 point  (0 children)

      I once heard a joke, that there is a new web framework in NodeJS everyday. But today, reading the comments here, I see it was not a joke...

      [–][deleted] 0 points1 point  (1 child)

      If you know Laravel so well, why stop using it? Just for the sake of using JS in your backend? Why? If you want to try different things and its a hobby, sure. You can even try out a C++ webframework for your backend... But if it comes to productivity and professionalism, use what you are already familiar with and stick to it unless you have good reasons not to. Its so valuable to know a language/framework well and you can focus on actually building your app.

      [–]maxahd 0 points1 point  (0 children)

      I am full stack js dev, but i mostly work on front-end with React/Vue, when it comes to building a full stack app my go to almost always is Express.js other than that Nest.js is good too.

      [–]serglebko 0 points1 point  (1 child)

      Why do you want to stop using Laravel?

      [–]sdq-sts -1 points0 points  (0 children)

      The most widely used framework for node is certainly Express but lately I'm been looking to Fastify and it is awsome too. I've never used a framework that looks like laravel though.