📄 Table of contents

◉ all about nodeJS

◉ Why is nodeJS NOT considered a Framework ?

◉ What is NPM?

Modules in NodeJS?

var http = require(‘http’);
var express = require('express');
var fs = require('fs');

◉ Callbacks in nodeJS

◉ A Simple NodeJS server (without Express JS)

Creating Simplest server using “http” module
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var url = req.url;
if(url ==='/about'){
res.write('<h1>about us page<h1>');
else if(url ==='/contact'){
res.write('<h1>contact us page<h1>');
res.write('<h1>Hello World!<h1>');
}}).listen(3000, function(){
console.log("server start at port 3000");
//the server object listens on port 3000


npm install nodemon -g

What is ExpressJS?

◉ Building a simple REST API with NodeJS and Express.

download the most stable release of NodeJS.
Open cmd => check for
npm -v
node -v
to confirm that above installation has been successful
npm install express — save
var express = require(“express”);
var app = express();
app.listen(3000, () => {
console.log(“Server is running on port 3000”);
node app.js

◉ how to server Static files in nodeJS.

Building a Node.js API using nodeJS + Express + MongoDB

What Is Better Node JS Or Angular JS?

NW.js (formerly node-webkit)

Experience with Front-end Technologies and MERN / MEAN Stack. Working on all Major UI Frameworks like React, Angular.