TNSDC IBM FDP AGENDA
Important concepts of Node.js and REST API.
Real-time- Case studies.
Real-
time-
time
WEEK 1 – PROGRAM
ORIENTATION
● NodeJS, Express Framework,
Installation
● NPM (Node Package Manager)
WEEK 2 & 3 –PRE PROJECT
DEVELOPMENT ● Creating a basic Node.js Project
NodeJS and ● Handling requests and responses (HTTP
& HTTPS
● Calls)
Express ● Introduction to Express, Advanced
Asynchronous Programming
Framework ● Working with Express
Fundamentals ● Introduction to Asynchronous File
WEEK 9,10- USE CASES ANDSystem
PROJECT FINAL ● Introduction to JS ES6, Nodemailer
SUBMISSION AND EVALUATION.
Module
● Session Management, Authorization
using JWT
JavaScript /NODE JS
● JavaScript is a programming language for client-side web applications that
run in a web browser. All modern web browsers support JavaScript. NodeJS
is a cross-platform as well as open-source JavaScript runtime environment
which runs on the V8 JavaScript engine allowing JavaScript to be executed
on the server side.
● Developers build responsive, interactive web applications with HTML,
Cascading Style Sheets (CSS), and JavaScript.
● As an interpreted language, you do not need to compile JavaScript
applications before running them. You can quickly write, test, and debug
JavaScript applications in the web
browser.
With client-side JavaScript, developers create rich, interactive
web applications in the web browser.
JavaScript applications in the node server.
With server-side JavaScript, Node applications process and route web service
requests from the client.
Compare the following diagram with the one in the previous slide. Most of
the steps are identical.
In Step 1, the user selects an option in the user interface, written in HTML and
CSS.
Step 2, the option triggers a JavaScript application that implements the business
logic on the client side.
Step 3, the JavaScript application makes a web service call over HTTP with a
data payload written in JSON. In the next step, a REST web service intercepts
the HTTP request.
The distinction can be seen in the last two steps where:
a. For the client-side JavaScript, the application server is going to process the
web service request using a server-side application, such as Enterprise Java
components.
Key features of NodeJS
● Node is a server-side
programming framework that
uses JavaScript as its
programming language
● Node is built with a heavy
emphasis on concurrent
programming with a lightweight
language
● Node is suited for developers that
want to build scalable,
concurrent server applications
quickly with a minimal set of
tools
● NodeJS also comes with built-in
support for package management
using the NPM (Node Package
Manager) tool that comes by
default with every Node.js
installation.
● NodeJS runs on Google’s open
source JavaScript engine called
V8.
NodeJS
Architecture
Node.js uses the concepts of
Asynchronous model and non-
blocking I/O. It makes use of the
“Single Threaded Event Loop”
architecture in order to handle
multiple concurrent clients.
Node.JS Processing Model makes
use of JavaScript event-based
model along with the JavaScript
Callback mechanism.
Node.js makes use of Google’s
open source V8 engine which is a
library of C++ code which in turn
compiles our JavaScript code to
Machine Level Language for it to
NodeJS
Architecture
● Requests: Incoming requests depend on the task that is
being performed in a web application.
● Node.js server: Is a server-side platform which receives,
processes the requests to return response to the
corresponding user.
● Event Queue: It stores incoming requests and sends them
one-by-one to the Event Loop.
● Thread pool: Contains all threads available for carrying out
tasks to fulfill requests.
● Event Loop: Event Loop continually receives, and
processes requests and then returns response to
Express
● Framework
Express is a minimal and
flexible Node.js web application
framework that provides a
robust set of features for web
and mobile applications.
● It is a light-weight, fast, flexible
and simple web development
framework which provides
several great features such as an
intuitive view system, robust
routing, an executable for
generating applications and
much more. Express is one of