1Javascript was always a client side language until node.js.
2Common server side languages include PHP, Python, Perl, Ruby
3and several more. Node enables you to use Javascript server side.
4This now means you can have a consistent language both ends
5which could not be done prior to Node.
1NodeJs is Runtime environment for executing Js code, Outside Of Browser.
2it is build upon Chrome v8 engine using c++.
3
4Uses of Node:
5
6-can build back-end services like API which can be used as backend for
7diferent platform Apps(Website, MobileApp, Desktop App).
8
9-is Asynchronous by default means Single thread handle all the request
10and response, thereby providing more speed, highly scalable, built time half
11compare to other tech in market, 33% few line of code, 40% fewer files,
12can handle 2times more requests/secs, 35% fast response time.
13// Hope you like the short Description.
1Express is a minimal and flexible Node.js web application framework
2that provides a robust set of features for web and mobile
3applications.
4
1//
2// Great choice for web development
3// Download: https://nodejs.org/en/download/
4//
1Node js allows you to run javascript outside of your browser
2ex: you are able to run it on your terminal
1npm install http then write a webserver...
2const http = require('http');
3const PORT = 3000;
4
5const server = http.createServer((req, res) => {
6 res.statusCode = 200;
7 res.setHeader('Content-Type', 'text/plain');
8 res.end('Hello World');
9});
10
11server.listen(port, () => {
12 console.log(`Server running at PORT:${port}/`);
13});