I am using NestJS. Express is simple. But, you have to build an architecture around it when building more sophisticated applications. Whereas NestJS just takes care of everything out of the box.
Long time React&Express user, Nest made me forget about express in minutes literally. I even got the occasion to use Angular after all the negative content I heard about but man Angular and Nest is a match made in heaven, so productive to work with those two. If you read this and you want to build enterprise grade apps, learn Next you won't go back to express.
We use NestJS at work. Having a framework that supports DI was important to us for testing and switching dependencies based on certain requirements. NestJS uses Express underneath the hood (with an option to plugin Fastify as well). What people don't realise is that it is really hard to build a large backend with express because of it's un opiniated nature. We also use Quarkus for certain projects that use Kafka very heavily.
But I use express.js for both small, mid-sized and large backends and never face issues that most people describe. I actually use rabbitmq often and kafka less aften. I never face issues most people who don't use it for large scale back-ends describe.
@@nou4605 I actually do use it on a daily. I think the difference comes on experience, just like any other technology, after using it over and over, you get a way of handling everything and including its drawbacks thats why I never have an issue anymore, I use it with typescript often for both small, midsized and large backends,
The same reason that in enterprise projects people use Spring Boot and not e.g. Micronaut / Helidon etc. It's the most developed one, the most battle tested one, has the most documentation etc. As for the reason this dev doesn't use express (or any Node backend for that matter), lies in the previous personal experience and the state of current workplace, a mostly Java oriented shop where backend is concerned, therefore a Spring Boot place (couldn't even persuade higher ups for the value of Quarkus, an arguably far better and streamlined experience, or even standardized JEE - Jakarta).
What's the value of Quarkus compared to Spring Boot? On an unrelated note, I was considering giving Micronaut a try to compare memory usage, most Java microservices seem to be using a lot more than they should for basic REST APIs
It's just because most teacher teaches using express js. And this is all students who downloaded it. If the student switch they choose different path and hence other framework has less download
I absolutely love Nest. I think that comparing it to Angular kind of shines a bad light on it, so I don't really like to make comparisons, even though I am a fan of Angular. In my opinion, a backend should have a well-defined architecture and strong type safety, all of which Nest offers out of the box, among many other things. I spent years making backends in Express, but I could never go back to it. Well, Nest does use Express under the hood so I guess I'm still using it, but it just feels much more solid this way.
He compared it to old angular which is wrong. Nest was inspired by the new Angular. Not old Angular. Makes me wonder if author is not too familiar with Angular.
The "issue" I faced with Adonis is that if Adonis is "Laravel for JS", why not just use Laravel? It's been there longer and won't go anywhere anytime soon, whereas Adonis is a smaller team. The only limit is if you can't use PHP, or are not willing to learn it (but if you're a web dev, it's not hard and is always useful). I really like the idea, of Adonis but I don't think it will find its own niche
@@TheGajos in 99% of projects the difference in speed is not even a problem (and there are ways you can optimise if it's really necessary), and even if it is you might as well use Go since it's much faster even than node
I discovered NestJS a year after learning and using Node.js with Express. Over time, I started to dislike how unopinionated Express was, especially when it comes to project folder structure . NestJS helped me with this, offering a more structured approach and has excellent documentation.
@@octane-nn1rk Fiddle with the top 5 most downloaded in that category and pick the one that resonates best with your style. That's the best way I think one can get "the best"
@@octane-nn1rk theres nothing called best, if you're a hobbyist you'd like solid or svelte but if you're looking for a job you're better off with react. And in terms of development/coding, svelte feels faster but svelte lacks a huge ecosystem like react, a good ecosystem means a lot of tools already available and doesn't need you to code it manually. I chose react as a beginner because I wanted to launch an app and a dev mate suggested me react because he knew i was a total beginner and that react has the most tutorials, articles, packages, you name it... available on the internet that I could learn from as i build. So as a starting point, pure react with vite (not nextjs) would be the best starting point because of a lot of tuts, tooling, jobs, etc. After that svelte and other frameworks will almost always feel the same. I learnt svelte in 1 month, vue in 1 and half a month, just by reading a couple of documentation. Also, nextjs is just a combination of react and express, and you basically know half of nextjs if you know react and other half of nextjs if you know express.
Probably 8 years ago I first took youre course about Angular, because I wanted to start my career as a Web UI developer. Now I am full-stack developer (NodeJs + Angular) with 6 years experience. Thank you for your job! I use NestJs as Node framework, because if you work with Angular you already now the concept. Besides this NestJs provides an architecture layer (Layered Architecture) that makes development easy and provides maintainability. Further more you are allowed to use features of Express or Fastify, the framework itself exposes its API that is pretty cool. So, for me to use NestJs + Angular is preaty cool!
NestJS is actually my favorite.. I come from Symfony in PHP.. so I like to use OOP design patterns and have things like events, dependency injection, a typed orm.. it's just perfect for people who wanna make realy big complex apps
@@programmerjowo Laravel has been maintained with far better docs than any other php frameworks including Symphony. I have been using Laravel since 4.2 and all I can say that it's super stable and far easy to upgrade 5-6 year old apps on the framework. Although Laravel is based on top of it, it's also greatly benefited from the popularity of Laravel in the community.
not perfect but it's doable, as long as you know how to manage the hosting/deployment part, manage memory leaks and have a solid monitoring/logging strategy I don't see why js is bad for big projects. The reason I prefer js/ts over PHP is because nowdays, frontends are based on js.. so it's much more efficient to have everything in js.. you don't redo things like data validation etc... yes you can still use things like graphql but in our particular case (small team) having a full js ecosystem makes more sens.
Express was built with a lot of flexibility in mind and that's why even other high-end frameworks only add opinion on top of it. It's middleware architecture makes it easy to build plugins and extend it's capabilities. You can still have DI without nestjs if you properly use available libraries like inversify. I can summarise it that it's quite easy to pick up and build complexities along the way. That way the learning curve is not steep for Junior devs and also it's stability now plays a key role
@@programmerjowo A framework does not justify whether you write quality code or not. It's all on the developer because we can achieve all this with whichever language you wish
I totally agree with you on why express js is popular. And the reason I will use it is consist of many things, including it is popular it has great ecosystem, and it is simple (Mean I can have my own directory structure and have my own philosophy on how every thing should be organized) This make me feel that I know everything about my project. Unlike NestJs where I will always feel I don't know about the full capabilities of the framework (because I am new to it).
I'am using NestJS, too. But actually nestjs is still express.js, and if you wan to use express still functions, middlewares you can. I think NestJS is Express + Typescript with some stable and good features. Lastly, I dont know Angular, i am activelly using react with typescript. And i am big fan of nestjs.
I've been using nestjs for a couple of months. I dunno why though. It's just me. All the time I'm trying to figure how to do x thing in nestjs when I know in express it be simple. And for what? At the end of the day I just need it to send a json to my front end. I dunno why I beat a square peg through a round hole. Some things are awesome in nestjs though. I love how easy guards are. Once I learn something in nestjs, I'm usually good, but it's still very complex.
The simplicity of express allows me to easily separate business logic from the framework. While battery-included frameworks are convenient, they sometimes force the logic to "marry" them, which I'm personally not a fan of. But still, it depends on what kind of project we're building
Really not a troll comment, but I had the opposite experience. Everything in Django felt antiquated or poorly thought out. We constantly had migration conflicts, even on a small team. I couldn’t believe the framework was unable to handle that. Maybe this was user error? Moreover, the DRF wasn’t fun either. Too much magic. Set a serializer class and then add a serializer with specific methods? Gross. Python is a nice language though.
i wanted to use it too but i am not sure about is features and plugins , i mean it keeps grow but for example i searched how to integrate elastic search or redis and i didnt find nothing, what do u think about it? Elysiajs is good for small projects maybe ?
@@flavioscimeca4343 I discover elysiajs more robust and for fast development, me already use elysia with redis and elastich, minio, webrtc and others, everything works :)
@@flavioscimeca4343 maybe you want to try honojs? but im using elysia for big project and its fine, integrate with redis, minio, webrtc and any other tech, I believe elastic will works too.
@@flavioscimeca4343personally i don't like it. I switched from elysia to nest js. Elysia is unnecessarily complex and definitely not good for enterprise.
I've never worked with Angular, but I am very fond of Nest. My last solo project was in Express, but the next one will 100% be in Nest. I wish you had a course on Nest - your other courses on Udemy are a huge part of how I learned to code.
Hono JS is also another NodeJS framework that I see has potentials. I did not find you mentioned it. What is your take on hono.js and May be a course on it. Just may be...😊
@@mujibulhaquetanim works on most (is not all) JS run times. Syntax, extremely similar to express but fully featured and reduced code needed. For example, hono doesn't need controllers. The business logic and routing should be in the same place per hono docs
Some of the frameworks are using express under the hood (eg NestJS). So this is adding up I guess. Personally I don't use any frameworks (I am PHP dev) but if I could, I would probably try NestJS as it seems to have good microservice solution, which is what I am currently working on.
im glad that you made this video because if i had to make a nodejs server supre quickly i probably would use one of the other options like koa or fastify. I hadent heard of adonis but ill check that out. The reason I dont use any of these at the moment is because im using Axum with Rust and it's a phenomenal experience. Edit: Adonisjs looks great!
I may like Fastify if I used it because I saw its tutorials looking awesome. But my project was using Express, so I had to stick with Express, which is simple and good.
I used Nest.js for one of my backend APIs, and I wish I could go back and have the time to refactor everything into plain Express. For me Nest.js is just a thing objected oriented wrapper around Express that makes your backend look a lot like an Angular service layer. Which of course is what attracted me to it initially. 😊 But after running it for a while, the cost / benefit for me is not really there, there is really no tangible benefit to it other than it's a different programming model. So I just can't recommend it compared to plain Express. 👍
The one problem is finding devs to keep maintaining the code base. Like if I leave the company, somebody else with actual professional experience with express can just take it up.
I am using what my customer asks me to use, and it is mostly Express: most of them are comfortable with it and don't want to go out of that comfort zone. When I have carte blanche on the tech-stack, I go for Fastify for precisely the reason you mentioned: Express not being maintained for ages and twice faster. Now, I am starting a new project for a new customer and I have to go the Nest/Express way. Once I master Nest, on the next project on which I have carte blanche, I will probably go for Nest/Fastify.
Fastify all day long... You can do amazing things and its fast as hell. Express is also good, more like tradition. In my company, we have the entire OS built on top of express and GraphQL that serves IIoT in Mercedes, BMW, Porche, Audi, etc. We have more than 50 microservices. There is no need for Nest and stupid abstractions if you know what are you doing. We did it very simple and its organized on another level that you cant even imagine. No fucking single bug and problem.
I doubt many people who use express or download it are mostly after following some tutorial because it is widely included in all node js courses and is easy to demonstrate a trivial CRUD api or a simple json server that's it, People who actually want to build something substantial are very much aware of the nuances that comes with using express and they are definitely using it's alternatives like nest js,fastify etc.
I'm not a fan of Angular but I love NestJS. I just needed framework that offers DI and annotation-like functionality. I think it really shines when it comes to application scalability. It's modular and works great with some more advanced patterns, clean architecture and DDD. Some say that you should use Java or C# when doing anything more advanced, but it's hard disagree from me. Don't get me wrong, Java and C# are great tools for building enterprise applications and C, Zig or Rust are great for building high-performance applications. But Node.js + NestJS is a great tool for building anything in between. And you are moving so much faster with it. I would say, if you're building anything new, starting with Node and NestJS is a great choice for first iteration/MVP. Time-to-market is a huge factor for success.
adonis is basically one guy taking care of everything. He discontinued v4 before 5 was available and no LTS was warranted. I would avoid it like the plague.
@@JoseHenrique-xg1lp Its not one guy, he has a team now that is sponsored. You are spreading misformation. It starteed with one guy like everything else :)
the download number not actually represent the framework/library is used in production, because most downloads are from the people learning or exploring the package.
I prefer to build my own meta-framework on top of express with some very clean patterns and middleware that any developer can jump into and understand.
I like NestJS as it's straight-forward and if you have a team you have rules that you must follow. We did some projects on ExpressJS but depends on project, experience and size of team.
Because usually when I need a webserver, Im actually building something else and I want something that I already know will do the job. Which sucks because Express isn't amazing in many ways. Just at that point in time I dont want to be blocked from progressing on the main thing Im working on to learn a new thing
Express actually doesn't qualify to be called a framework, a framework is more of a Laravel or a ruby on rails. Express is just a library essentially, a routing library😅
Please stop spreading this misinformation. Express has a middleware / plugin system so its technically a framework. There used to be a separate routing library used by Express, it was called Connect (now it is fully integrated, the same package). Bloated ROR-like frameworks are one extreme case, featureless Express-like frameworks are the other.
If your background was related anyhow to React - then def RN. But if they both are new to u, do Flutter then. Flutter is younger but with huge potential, easier to bake first app, more strict. Where React and RN - more liberal, you can have more tools
Recently i built one project on fastify in production i faced lot issues like,hosted URl works when AWS console open when I closed that Fastify URL not work,first I thought it's was AWS issue ,and finally i realised that's issue was fastify then everything i changed to express now it's working fine3
what is your suggestion ? i use express but i have decided to go to the nest js. is it right a decision to make in order to become fullstack team lead in future ?
express was the first nodejs i learned while learning nodejs, also it gets the job done hence didn't bother learning other libraries as it becomes overwelming. Also given that express seems to be the standard with nextjs as well.
Nestjs use express under the hood, you can also switch to fastify later if you want. Nestjs is very good when you need order, and it's customizable when you know how to use it properly.
Is not NestJS built on top of Express with option to switch to Fastify? Which is possible only if Express js and Fastify are lower level frameworks and NestJS is more high level more about organizing your code not just handling http requests
I'm using it because my application has several other dependencies that integrate with it. Haven't tried if they work with Express alternatives though. Maybe I'll give it a try
We love express cause it doesn't constantly change also it is an industry standard in the JS work envirement. We can't constantly relearn and having syntax errors cause the framework keeps changing.
Adonis is a great framework, really. There is no any good framework that could be better than any frameworks like from Java or PHP. It seems like backend NodeJS development still doenst reach the needs of good DB REST app
I am wondering why you did not mention NextJS as it is also a framework with fullstack capabilities and thus it can also be used for backend development.
if it works in production, dont touch it. havent seen an ask or requirement that wont wrk with express, so why not, just keep running engine until it crashes
I hate working with Angular (modern Angular is getting better) but I love NestJS. As for simple projects, instead of using Express.js I default to Hono, specially since it has JSX support.
Hey I know reactjs, I haven't worked on nextjs. Can you please tell me for backend what will be used in nextjs? Is it nodejs, expressjs or anything else?
you can just use api routes in NextJS if you are working on a smaller projects so you dont have to use a separate backend. NextJS is a fullstack framework
Stale version is not necessary a bad thing. I don't think "it's not that many commits so old problems, are still there" is a good argument, if it was major problems I think people would go elsewhere rather quickly.
I don't like Nest.js, probably cause of it's decorators or dependency injections ( love angular though ). I like fastify with typescript, also hono. I use express cause my senior make that decision for me
Started using hono-js over express-js late last year and I have no plans to go back to using express-js. I don't see any benefit of even using express-js.
Fun topic. Don't really agree on express being dominant because it was early to market or has loads of docs or modules or is popular. Otherwise we'd still be using Netscape, Flash, etc. It's dominant because, despite its flaws, it satisfies 99% of people's needs. If the need shifts and Express doesn't it will also end up on the scrap heap. Personally, I've got better things to do than spend more dev time on Express alternatives. If I run into one of its flaws and switching becomes the only option, only then will I consider it. The same reason why, for personal work, I moved off React.
Hey Maximilian , you said you delete ngRx old videos and update it to latest one i means is it required , can did you deleted already or will delete if you are going to delete old videos , so do after a month Please, Or if you done already then i want to know is it completly changed or little bit
NestJS is based on Express so you are using it even there 😄 I would suggest anyone to first use Express and then Nest so you would understand why Nest is so good.
Hello Max , i want to suggest that you read comments section for your Node/Express course on Udemy , there are people complaining and saying that the course is really old and needs to be updated , i wonder why you don’t update it as you usually do for react course for example or release another new course with your new amazing learning skills Thank you Max ❤
The download number is so high because of legacy/old systems. Also because e.g. nestjs has express as its dependency. Migrating to something more convenient like nestjs is sometimes not a choice a company can make because it s expensive and does not bring any value (in the eyes of the prodduct owner) Express is dead. Every new project I see is build on top of nest.
Express is good but nest is very focused and opinionated.. so there are circumstances i would suggest to go for nestjs like enterprise level software but for small application express is sufficient
I don't understand why everyone comparing nestjs to angular only and why not to Java springboot? 🤔 @max Please explain deep into nestjs so that developers from all over the world will look into the amazing nodejs framework ❤🎉😊
I am using NestJS. Express is simple. But, you have to build an architecture around it when building more sophisticated applications. Whereas NestJS just takes care of everything out of the box.
NestJS is fantastic!
Yes, Nest Js follow SOLID principle.
Long time React&Express user, Nest made me forget about express in minutes literally. I even got the occasion to use Angular after all the negative content I heard about but man Angular and Nest is a match made in heaven, so productive to work with those two. If you read this and you want to build enterprise grade apps, learn Next you won't go back to express.
I like Nest a lot. Its very similar to Spring Boot (Java), so if you have experience using that, its a no brainer.
same thought here. well said.
We use NestJS at work. Having a framework that supports DI was important to us for testing and switching dependencies based on certain requirements. NestJS uses Express underneath the hood (with an option to plugin Fastify as well). What people don't realise is that it is really hard to build a large backend with express because of it's un opiniated nature.
We also use Quarkus for certain projects that use Kafka very heavily.
But I use express.js for both small, mid-sized and large backends and never face issues that most people describe. I actually use rabbitmq often and kafka less aften. I never face issues most people who don't use it for large scale back-ends describe.
@@abeinevincent5585 Suuure you don't. Have your code reviewed by someone more experienced.
@@nou4605 I actually do use it on a daily. I think the difference comes on experience, just like any other technology, after using it over and over, you get a way of handling everything and including its drawbacks thats why I never have an issue anymore, I use it with typescript often for both small, midsized and large backends,
@@abeinevincent5585 Good engineers can build using pretty much any tool.
@@abeinevincent5585 do you have some public repo for large project using expressjs? Thanks
The same reason that in enterprise projects people use Spring Boot and not e.g. Micronaut / Helidon etc. It's the most developed one, the most battle tested one, has the most documentation etc.
As for the reason this dev doesn't use express (or any Node backend for that matter), lies in the previous personal experience and the state of current workplace, a mostly Java oriented shop where backend is concerned, therefore a Spring Boot place (couldn't even persuade higher ups for the value of Quarkus, an arguably far better and streamlined experience, or even standardized JEE - Jakarta).
This video was about Nodejs frameworks and not Java 😊
@@ademineshatdid you even understand what he's saying?
@ademineshat wow... completely missed the point there, didn't ya?
What's the value of Quarkus compared to Spring Boot? On an unrelated note, I was considering giving Micronaut a try to compare memory usage, most Java microservices seem to be using a lot more than they should for basic REST APIs
Thumbs up for quarkus
Who else always watches this guy in 1.5x?
x2
2x actually
I thought I am the only one 😂
i use 3x
me
It's just because most teacher teaches using express js. And this is all students who downloaded it. If the student switch they choose different path and hence other framework has less download
same goes for React lol...
I absolutely love Nest. I think that comparing it to Angular kind of shines a bad light on it, so I don't really like to make comparisons, even though I am a fan of Angular. In my opinion, a backend should have a well-defined architecture and strong type safety, all of which Nest offers out of the box, among many other things. I spent years making backends in Express, but I could never go back to it. Well, Nest does use Express under the hood so I guess I'm still using it, but it just feels much more solid this way.
do you think i should use nest js in order to become team lead in future?
He compared it to old angular which is wrong. Nest was inspired by the new Angular. Not old Angular. Makes me wonder if author is not too familiar with Angular.
I’m sad that Adonis didn’t quite take off yet. It is a great framework
The community is active and it is always improving. Adonis is great.
@@megatechbody3207 Many more tutorials on UA-cam about AdonisJS are needed; as of today, there is barely any content.
The "issue" I faced with Adonis is that if Adonis is "Laravel for JS", why not just use Laravel? It's been there longer and won't go anywhere anytime soon, whereas Adonis is a smaller team. The only limit is if you can't use PHP, or are not willing to learn it (but if you're a web dev, it's not hard and is always useful). I really like the idea, of Adonis but I don't think it will find its own niche
@@MyOwnPufferFishPHP is slow and as you gonna tell me that there's Laravel Octane.. ok it's fast, but mostly incompatible with packages
@@TheGajos in 99% of projects the difference in speed is not even a problem (and there are ways you can optimise if it's really necessary), and even if it is you might as well use Go since it's much faster even than node
I discovered NestJS a year after learning and using Node.js with Express. Over time, I started to dislike how unopinionated Express was, especially when it comes to project folder structure . NestJS helped me with this, offering a more structured approach and has excellent documentation.
same reason people use React even if it's not the best framework technically
It was but now its mess thanks to hooks and vercel 😂
Which is the best then?
@@octane-nn1rk Fiddle with the top 5 most downloaded in that category and pick the one that resonates best with your style. That's the best way I think one can get "the best"
@@programmerjowo agreed, vercel ruined react.
@@octane-nn1rk theres nothing called best, if you're a hobbyist you'd like solid or svelte but if you're looking for a job you're better off with react. And in terms of development/coding, svelte feels faster but svelte lacks a huge ecosystem like react, a good ecosystem means a lot of tools already available and doesn't need you to code it manually. I chose react as a beginner because I wanted to launch an app and a dev mate suggested me react because he knew i was a total beginner and that react has the most tutorials, articles, packages, you name it... available on the internet that I could learn from as i build. So as a starting point, pure react with vite (not nextjs) would be the best starting point because of a lot of tuts, tooling, jobs, etc. After that svelte and other frameworks will almost always feel the same. I learnt svelte in 1 month, vue in 1 and half a month, just by reading a couple of documentation. Also, nextjs is just a combination of react and express, and you basically know half of nextjs if you know react and other half of nextjs if you know express.
Probably 8 years ago I first took youre course about Angular, because I wanted to start my career as a Web UI developer.
Now I am full-stack developer (NodeJs + Angular) with 6 years experience.
Thank you for your job!
I use NestJs as Node framework, because if you work with Angular you already now the concept.
Besides this NestJs provides an architecture layer (Layered Architecture) that makes development easy and provides maintainability. Further more you are allowed to use features of Express or Fastify, the framework itself exposes its API that is pretty cool.
So, for me to use NestJs + Angular is preaty cool!
NestJS is actually my favorite.. I come from Symfony in PHP.. so I like to use OOP design patterns and have things like events, dependency injection, a typed orm.. it's just perfect for people who wanna make realy big complex apps
The same for me. Symfony is for me the most professional framework for php and i really wonder, why Laravel is so hyped.
@@GGGGGGGGGG96 they just too.lazy to learn symfony and just follow the trend, just like in Js world.
with js* not perfect for really big complex apps between all mainstream languages out there
@@programmerjowo Laravel has been maintained with far better docs than any other php frameworks including Symphony. I have been using Laravel since 4.2 and all I can say that it's super stable and far easy to upgrade 5-6 year old apps on the framework. Although Laravel is based on top of it, it's also greatly benefited from the popularity of Laravel in the community.
not perfect but it's doable, as long as you know how to manage the hosting/deployment part, manage memory leaks and have a solid monitoring/logging strategy I don't see why js is bad for big projects. The reason I prefer js/ts over PHP is because nowdays, frontends are based on js.. so it's much more efficient to have everything in js.. you don't redo things like data validation etc... yes you can still use things like graphql but in our particular case (small team) having a full js ecosystem makes more sens.
Max, when is the NestJs course coming out?
Express was built with a lot of flexibility in mind and that's why even other high-end frameworks only add opinion on top of it. It's middleware architecture makes it easy to build plugins and extend it's capabilities. You can still have DI without nestjs if you properly use available libraries like inversify. I can summarise it that it's quite easy to pick up and build complexities along the way. That way the learning curve is not steep for Junior devs and also it's stability now plays a key role
I will just use spring boot if I need di or enterprise framework 😂
@@programmerjowo A framework does not justify whether you write quality code or not. It's all on the developer because we can achieve all this with whichever language you wish
I totally agree with you on why express js is popular. And the reason I will use it is consist of many things, including it is popular it has great ecosystem, and it is simple (Mean I can have my own directory structure and have my own philosophy on how every thing should be organized) This make me feel that I know everything about my project. Unlike NestJs where I will always feel I don't know about the full capabilities of the framework (because I am new to it).
I'am using NestJS, too. But actually nestjs is still express.js, and if you wan to use express still functions, middlewares you can. I think NestJS is Express + Typescript with some stable and good features.
Lastly, I dont know Angular, i am activelly using react with typescript. And i am big fan of nestjs.
I've been using nestjs for a couple of months. I dunno why though. It's just me. All the time I'm trying to figure how to do x thing in nestjs when I know in express it be simple. And for what? At the end of the day I just need it to send a json to my front end. I dunno why I beat a square peg through a round hole.
Some things are awesome in nestjs though. I love how easy guards are. Once I learn something in nestjs, I'm usually good, but it's still very complex.
Express is used as the router inside NestJs, so, even though ExpressJs has many downloads, NestJs contributes to that number
The simplicity of express allows me to easily separate business logic from the framework. While battery-included frameworks are convenient, they sometimes force the logic to "marry" them, which I'm personally not a fan of. But still, it depends on what kind of project we're building
Thanks! Using Django for decade and incredibly happy with it.
Here here
Developers using Ruby on Rails, Django and Laravel use them and live happily ever after.
Really not a troll comment, but I had the opposite experience. Everything in Django felt antiquated or poorly thought out. We constantly had migration conflicts, even on a small team. I couldn’t believe the framework was unable to handle that. Maybe this was user error?
Moreover, the DRF wasn’t fun either. Too much magic. Set a serializer class and then add a serializer with specific methods? Gross.
Python is a nice language though.
Express is simple and good enough for most people. If I need something faster or "better", I might look outside the JS/TS landscape.
Im using ElysiaJS and im in love with it.
i wanted to use it too but i am not sure about is features and plugins , i mean it keeps grow but for example i searched how to integrate elastic search or redis and i didnt find nothing, what do u think about it? Elysiajs is good for small projects maybe ?
@@flavioscimeca4343 I discover elysiajs more robust and for fast development, me already use elysia with redis and elastich, minio, webrtc and others, everything works :)
@@flavioscimeca4343 maybe you want to try honojs? but im using elysia for big project and its fine, integrate with redis, minio, webrtc and any other tech, I believe elastic will works too.
@@flavioscimeca4343personally i don't like it. I switched from elysia to nest js. Elysia is unnecessarily complex and definitely not good for enterprise.
When can we all expect a nest.js course ?
I've never worked with Angular, but I am very fond of Nest. My last solo project was in Express, but the next one will 100% be in Nest. I wish you had a course on Nest - your other courses on Udemy are a huge part of how I learned to code.
Hono JS is also another NodeJS framework that I see has potentials. I did not find you mentioned it. What is your take on hono.js and May be a course on it. Just may be...😊
Glad to see a comment on it haha.
doesn't it use deno instead of nodejs?
@@mujibulhaquetanim, It uses node, deno and bun.
@@mujibulhaquetanim works on most (is not all) JS run times. Syntax, extremely similar to express but fully featured and reduced code needed. For example, hono doesn't need controllers. The business logic and routing should be in the same place per hono docs
@@everythingisfine9988 Thank you for the information; I will certainly experiment with Hono.
Some of the frameworks are using express under the hood (eg NestJS). So this is adding up I guess.
Personally I don't use any frameworks (I am PHP dev) but if I could, I would probably try NestJS as it seems to have good microservice solution, which is what I am currently working on.
im glad that you made this video because if i had to make a nodejs server supre quickly i probably would use one of the other options like koa or fastify. I hadent heard of adonis but ill check that out. The reason I dont use any of these at the moment is because im using Axum with Rust and it's a phenomenal experience.
Edit: Adonisjs looks great!
I'm using AdonisJS 5, helps me deliver APIs & Web Apps super-fast, has inbuilt Auth, UI, DB..., fantastic framework, + typescript 😱
I may like Fastify if I used it because I saw its tutorials looking awesome. But my project was using Express, so I had to stick with Express, which is simple and good.
I use Koa and I love its simplicity and minimalism. Also its cascading middleware system is an obvious win over Express.
I used Nest.js for one of my backend APIs, and I wish I could go back and have the time to refactor everything into plain Express. For me Nest.js is just a thing objected oriented wrapper around Express that makes your backend look a lot like an Angular service layer. Which of course is what attracted me to it initially. 😊 But after running it for a while, the cost / benefit for me is not really there, there is really no tangible benefit to it other than it's a different programming model. So I just can't recommend it compared to plain Express. 👍
You are right, why we add layer to express Js if we want to use simple framework. If we need enterprise framework just use spring boot
The one problem is finding devs to keep maintaining the code base.
Like if I leave the company, somebody else with actual professional experience with express can just take it up.
I am using what my customer asks me to use, and it is mostly Express: most of them are comfortable with it and don't want to go out of that comfort zone.
When I have carte blanche on the tech-stack, I go for Fastify for precisely the reason you mentioned: Express not being maintained for ages and twice faster.
Now, I am starting a new project for a new customer and I have to go the Nest/Express way.
Once I master Nest, on the next project on which I have carte blanche, I will probably go for Nest/Fastify.
Fastify all day long... You can do amazing things and its fast as hell. Express is also good, more like tradition. In my company, we have the entire OS built on top of express and GraphQL that serves IIoT in Mercedes, BMW, Porche, Audi, etc. We have more than 50 microservices. There is no need for Nest and stupid abstractions if you know what are you doing. We did it very simple and its organized on another level that you cant even imagine. No fucking single bug and problem.
I doubt many people who use express or download it are mostly after following some tutorial because it is widely included in all node js courses and is easy to demonstrate a trivial CRUD api or a simple json server that's it, People who actually want to build something substantial are very much aware of the nuances that comes with using express and they are definitely using it's alternatives like nest js,fastify etc.
I inherited a NestJS project, it took 5 seconds to restart, which is completely impossible to work with.
Hono is the GOAT
Yeah, I have been playing with hono. I think I like it.
🐐
i’m pretty sure he must have been payed by fastify to make this video. there is no other explanation
I'm not a fan of Angular but I love NestJS. I just needed framework that offers DI and annotation-like functionality. I think it really shines when it comes to application scalability. It's modular and works great with some more advanced patterns, clean architecture and DDD. Some say that you should use Java or C# when doing anything more advanced, but it's hard disagree from me. Don't get me wrong, Java and C# are great tools for building enterprise applications and C, Zig or Rust are great for building high-performance applications. But Node.js + NestJS is a great tool for building anything in between. And you are moving so much faster with it. I would say, if you're building anything new, starting with Node and NestJS is a great choice for first iteration/MVP. Time-to-market is a huge factor for success.
Nest is the best thing that can happen for node , with di and everything, it is the best choice for building big server side applications.
Somewhat disagree in terms of maintainability. What are the pros of using NestJS over ExpressJS?
Do you actually know that nestjs uses express under the hood? It's just more structured@@taylorlindoresreeves
for me at this point of my early career, ive been using nest for work,
and planning to use elysia and adonisjs for side projects
adonis is basically one guy taking care of everything. He discontinued v4 before 5 was available and no LTS was warranted. I would avoid it like the plague.
@@JoseHenrique-xg1lp Its not one guy, he has a team now that is sponsored. You are spreading misformation. It starteed with one guy like everything else :)
the download number not actually represent the framework/library is used in production, because most downloads are from the people learning or exploring the package.
It worth mentioning that NestJS uses Express (By default) or Fastify internally
NestJS is an amazing framework. We use it on our production for years now, it’s a fully mature framework that simply works.
I prefer to build my own meta-framework on top of express with some very clean patterns and middleware that any developer can jump into and understand.
I like NestJS as it's straight-forward and if you have a team you have rules that you must follow. We did some projects on ExpressJS but depends on project, experience and size of team.
Because usually when I need a webserver, Im actually building something else and I want something that I already know will do the job. Which sucks because Express isn't amazing in many ways. Just at that point in time I dont want to be blocked from progressing on the main thing Im working on to learn a new thing
Express actually doesn't qualify to be called a framework, a framework is more of a Laravel or a ruby on rails. Express is just a library essentially, a routing library😅
Please stop spreading this misinformation. Express has a middleware / plugin system so its technically a framework. There used to be a separate routing library used by Express, it was called Connect (now it is fully integrated, the same package). Bloated ROR-like frameworks are one extreme case, featureless Express-like frameworks are the other.
You are totally wrong here, maybe you haven't done much development in express.
React Native ? Flutter which one to go for Mobile Developer
React Native
Flutter is a bit faster but got confusing code nesting, Go with React Native with Expo
Flutter is hard to read
@@programmerjowo yep
If your background was related anyhow to React - then def RN. But if they both are new to u, do Flutter then. Flutter is younger but with huge potential, easier to bake first app, more strict. Where React and RN - more liberal, you can have more tools
Recently i built one project on fastify in production i faced lot issues like,hosted URl works when AWS console open when I closed that Fastify URL not work,first I thought it's was AWS issue ,and finally i realised that's issue was fastify then everything i changed to express now it's working fine3
what is your suggestion ? i use express but i have decided to go to the nest js. is it right a decision to make in order to become fullstack team lead in future
?
express was the first nodejs i learned while learning nodejs, also it gets the job done hence didn't bother learning other libraries as it becomes overwelming. Also given that express seems to be the standard with nextjs as well.
Nestjs use express under the hood, you can also switch to fastify later if you want. Nestjs is very good when you need order, and it's customizable when you know how to use it properly.
Nestjs is anything but order. Anything written with it is a complete mess.
@@Patrk38 Why you say that?
@@lukas.santiago because that’s the truth.
@@Patrk38 lmao ok
Is not NestJS built on top of Express with option to switch to Fastify? Which is possible only if Express js and Fastify are lower level frameworks and NestJS is more high level more about organizing your code not just handling http requests
0:14 i will use , Spring Boot Or ExpressJs
I love Springboot, trying to contribute open source no startup’s based on Springboot
@@AgeNtX071 Right
Max you will add fastify course or as a module to some existing course? If not also please let me know
I have used nestjs a lot, after started to angular on frontend opposite to react. It has a good architecture and scalability
Hello, Max need nestjs course. Would appreciate
I'm using it because my application has several other dependencies that integrate with it. Haven't tried if they work with Express alternatives though. Maybe I'll give it a try
hey max. i like your courses and I have just found your channel.
My personal reason to use nest js is that sweet auto open api doc generator. It just so easy with nest js.
We love express cause it doesn't constantly change also it is an industry standard in the JS work envirement. We can't constantly relearn and having syntax errors cause the framework keeps changing.
I love next js, but the thing i like about express is it doesn't change every 5 mins like next js
Im using Go.
KOA is always the go-to choice; Koa JS is the successor to Express, and it has already been ported to Deno 2
I look forward to the day you open the NestJS course in Udemy. I still haven't found a great instructor like you❤
The company I work for uses Koa, the error handling is great, much more convenient than express
I love Nestjs becuse it's great for big and complex projects .
Max what do you think of hono and bon for the backend?
Most of the download no of express js is from tutorials or who are learning backend development in node js
Adonis is a great framework, really. There is no any good framework that could be better than any frameworks like from Java or PHP. It seems like backend NodeJS development still doenst reach the needs of good DB REST app
I am wondering why you did not mention NextJS as it is also a framework with fullstack capabilities and thus it can also be used for backend development.
Yes indeed nextjs can be both but mostly it used for FE development, also as far as i know there are disadvantage when we are using next js for BE
if it works in production, dont touch it. havent seen an ask or requirement that wont wrk with express, so why not, just keep running engine until it crashes
I hate working with Angular (modern Angular is getting better) but I love NestJS.
As for simple projects, instead of using Express.js I default to Hono, specially since it has JSX support.
I love NestJS I have used it for just 2 projects but I love it.
What do you think about nestjs ?
there is not many tutorials on alternatives. I'm not talking about docs, but marketing)
I use expressJs and if i want to build something more robust and scalable i use Golang + gorilla mux or echo
usually, I use Express Js js but prefer NestJS for large projects 🙂.
Nitro unjs is my go to. for many years
Hey I know reactjs, I haven't worked on nextjs. Can you please tell me for backend what will be used in nextjs? Is it nodejs, expressjs or anything else?
I'm looking for the answer to this too, did you find an answer?
you can just use api routes in NextJS if you are working on a smaller projects so you dont have to use a separate backend. NextJS is a fullstack framework
Stale version is not necessary a bad thing. I don't think "it's not that many commits so old problems, are still there" is a good argument, if it was major problems I think people would go elsewhere rather quickly.
The bad thing about JS frameworks that are heavenly dependent on external packages which makes it hard to maintain in the long run
I don't like Nest.js, probably cause of it's decorators or dependency injections ( love angular though ). I like fastify with typescript, also hono. I use express cause my senior make that decision for me
I thought the reason was to be cool at the time was the opposite to Rails so it should be minimalistic.
Started using hono-js over express-js late last year and I have no plans to go back to using express-js. I don't see any benefit of even using express-js.
Fun topic. Don't really agree on express being dominant because it was early to market or has loads of docs or modules or is popular. Otherwise we'd still be using Netscape, Flash, etc. It's dominant because, despite its flaws, it satisfies 99% of people's needs. If the need shifts and Express doesn't it will also end up on the scrap heap. Personally, I've got better things to do than spend more dev time on Express alternatives. If I run into one of its flaws and switching becomes the only option, only then will I consider it. The same reason why, for personal work, I moved off React.
So... basically you use it because it was first and still gets the job done? So...yes, you use it because it was early to market.
Hey Maximilian , you said you delete ngRx old videos and update it to latest one i means is it required , can did you deleted already or will delete if you are going to delete old videos , so do after a month Please, Or if you done already then i want to know is it completly changed or little bit
I use Nestjs i like the organization and out-of-box mentality
NestJS is based on Express so you are using it even there 😄
I would suggest anyone to first use Express and then Nest so you would understand why Nest is so good.
Hello Max , i want to suggest that you read comments section for your Node/Express course on Udemy , there are people complaining and saying that the course is really old and needs to be updated , i wonder why you don’t update it as you usually do for react course for example or release another new course with your new amazing learning skills
Thank you Max ❤
I m using loopback 4 in my company’s project
Please make a fastify course, max!
I use Express because i have already done some projects with it, it is widly used and it is simple. Adonis look great i should give it à try.
Why? Because of your course and made me a fan of express
The download number is so high because of legacy/old systems. Also because e.g. nestjs has express as its dependency.
Migrating to something more convenient like nestjs is sometimes not a choice a company can make because it
s expensive and does not bring any value (in the eyes of the prodduct owner)
Express is dead. Every new project I see is build on top of nest.
Express is good but nest is very focused and opinionated.. so there are circumstances i would suggest to go for nestjs like enterprise level software but for small application express is sufficient
Do you have a php course and one of laravel?
Maxim please add fastify to your node course.
I don't understand why everyone comparing nestjs to angular only and why not to Java springboot? 🤔 @max Please explain deep into nestjs so that developers from all over the world will look into the amazing nodejs framework ❤🎉😊
Definitely using nitro for current work projects. Its deployment build targets is too easy with how it integrates with serverless environments.
express is used as small api for thousands of projects. nestjs uses it under the hood. It's kind of the C of api development
I've bought several of your courses in the past. Didn't knre u had a youtube channel. cool.