Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Node js and express js [closed]

I am a newbie for node js. What is the use of express JS? According to my understanding it is used for web projects and has some templates like Jade and CSS.

Is there anyother extra features in express.js that make it more dominating than node.js? Which one is better node.js or express.js when it comes to server side coding? Diff. between Express.js and node.js.

Kindly help. Thanks.

like image 295
vinod Avatar asked Oct 01 '12 07:10

vinod


People also ask

What is the difference between NodeJS and express JS?

Node. js is a platform for building the i/o applications which are server-side event-driven and made using JavaScript. Express. js is a framework based on Node.

Why we use express instead of NodeJS?

ExpressJS is a prebuilt NodeJS framework that can help you in creating server-side web applications faster and smarter. Simplicity, minimalism, flexibility, scalability are some of its characteristics and since it is made in NodeJS itself, it inherited its performance as well.

What is NodeJS and express JS used for?

The most common use for Node. js is writing Web applications, and a large percentage of these web applications today are using Express. js as their server framework. Express can be used to create JSON APIs, Server-side rendered web applications, or Microservices.

Should I learn NodeJS or express JS?

I would just get going with Express. js, if you already have general knowledge about programming and JavaScript. It is very simple, so you can make a web server in one script, handlers and all. If you go for a new version of node.


Video Answer


1 Answers

The comparison is not entirely correct. The difference between node.js and express.js in the level of abstraction:

  1. Node.js is a run-time environment for building server-side event-driven i/o application using javascript.
  2. 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.

like image 180
defuz Avatar answered Sep 30 '22 11:09

defuz