So I wanted to learn Node.Js thoroughly and recently I’ve been learning Node.js from online tutorial and it seems they are focusing on Node.js with express.js and not Node.js alone. Is it okay to learn it with express? Or should I complete this course and later learn few other things, OR, skip this course and learn only Nodejs??????? (In my company I want to switch internally where they require Node.js developer with some exp.)
node.js - Difference between Node js and express js - Stack Overflow
Node.js + Express.js, or Node.js alone?
What is expressJS exactly? i keep hearing nodeJS and express, but I don't know what express is except it's some kinda framework.
Express is a minimalistic web framework built for Node JS.
Without express - you can handle creating a server, handle routing, etc all manually.
Express makes it easier, and also has a lot of other middleware/etc written for it to make common tasks easier such as handling authentication, routing, parsing body/query strings, etc.
For some people - Express is still too 'bare bones' - and lots of other frameworks have popped up to build off of it like Sails JS.
There are alternatives like Koa, HapiJS, Restify, etc that serve similar needs and solve things in different ways.
As for which front end to learn - I'd say pick a few, do a few basic prototypes/proof of concept apps in each one and see what resonates with you the most.
Ember, React, Angular are the main 'big 3' right now - and Angular has a large demand in the job market right now. But there is also demand for Ember and React
BackOne is still heavily used in some places, but I haven't used it much myself outside of some basic prototypes.
IMO - Think of a simple project that's not too complex, but not too simply - I'd say you want something a little more complex than TodoMVC. I built out a 'contact management' app that had a few routes, a list view, a detail view, an edit view - then re-built the same app with a bunch of different frameworks (and even re-built it within the same framework a few times).
I'd say it's worth doing it at least for the most popular ones right now - but might not hurt to do the same for a few of the smaller/up and coming frameworks - Aurelia, Rivets, Vue, etc.
Part of growing up as a developer is actually giving a framework a good 'test run' on a prototype app before deciding to commit to it for the long term, and comparing it to a few other options to do some due diligence instead of just saying 'some guy on the net told me so, so I did'.
More on reddit.comwhy most of nodejs developers prefer Express over Nest ?
How do Node.js and Express.js work together?
What are the typical use cases for Node.js and Express.js?
What performance differences exist between Node.js and Express.js?
Videos
The comparison is not entirely correct. The difference between node.js and express.js in the level of abstraction:
- Node.js is a run-time environment for building server-side event-driven i/o application using javascript.
- Express.js is a framework based on node.js for building web-application using principles and approaches of node.js
So, if you write web-application, you can try to use Express.js. In all other cases, it does not suit for you.
Express is built on top of Node, so yes Express adds more features. Node is just a Javascript environment with libraries to make it easy to write software, where Express extends Node specifically to make webservers easy to write.
Express/Connect adds the concept of middleware, a simplified way of managing different routes, automated integration with several templating engines and a bunch more.