SlideShare a Scribd company logo
Server Side Apocalypse, JS
About Me
Md. Sohel Rana
Founder, NerdDevs
http://www.nerddevs.com
twitter : @sohel023010
skype : sohel023010
http://blog.sohel.me
Client
  Browser
  A Desktop App
  Rest Client
  Server? Yes!
Server
  Serves data, images, files, audio, video etc.
  Sometimes foods as well! Foodpanda J
Server Side Scripting
  ASP, ASP.NET, Java, PHP, Haskell, Perl, Python, Ruby
and so on!
  And also JavaScript
  JavaScript brought non-blocking IO
  It changed the way how server works
  We got NodeJS
NodeJS
  A runtime environment
to support JavaScript as
server side language
  Built on V8-JavaScript
Engine of Chrome, Fast
  Event-driven, non-
blocking I/O
NodeJS
  Advantages over others
- Asynchronous I/O, more request can server
- JavaScript as a Server Side language
- Event Driven
- Callbacks
- A good package manager “NPM”
  Disadvantages
- Single threaded
- Lack of standard libraries
NodeJS
An http server :
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello Worldn');
}).listen(9000, '127.0.0.1');
console.log('Server running at http://127.0.0.1:9000/');
Node Modules
  A functional unit that
performs specified actions
  Loaded using
require(‘module_name’)
  Usually placed at
node_modules folder
  Non-native modules
loaded searching upwards
Node Modules
A simple module :
// “modules/calculator.js”
exports.add = function(a, b){
return a+b ;
};
exports.subtract = function(a, b){
return a-b;
};
var Calculator = require('./module/calculator.js');
var addTwoNumber = Calculator.add(5,7);
NPM
  NPM- nodejs package
manager
  Used for install/
uninstall node
programs
  Can be used to install
dependencies
package.json is used to
define dependencies
//pakage.json
{
"name": "backbone-express-boilerplate",
"version": "1.0.0",
"scripts": {
"start": "node ./server/bin/www"
},
"dependencies": {
"express": "^4.12.3",
"body-parser": "~1.12.0",
"cookie-parser": "~1.3.4",
"jade": "~1.9.2",
"serve-favicon": "~2.2.0"
},
"repository": {
"type": "git",
"url": "https://github.com/sohel-rana/backbone-
express-boilerplate.git"
},
"author": "Sohel Rana”,
"bugs": {
"url": "https://github.com/sohel-rana/backbone-
express-boilerplate/issues"
},
"homepage": "https://github.com/sohel-rana/
backbone-express-boilerplate"
}
Web Frameworks
NodeJS provides core
modules
  Requires lots of effort for
web apps
  Express, Sails etc. provides
lots of feature top of it
  Makes the project
manageable
Case Studies
  LinkedIn moved from Rails to Node, reduced their
server uses from 30 to 3
  Microsoft, Walmart, eBay, Paypal all uses nodejs for
some of their services
  And there are many more here
Throw all?
  Throw all other and use
NodeJS? NO!
NodeJS is good to handle
many request.
  But will not perform well
when we need more CPU
  Suitable for real-time
applications
  Chat, online games ,
collaboration tools etc.

More Related Content

PPTX
Introduction to node.js
PDF
Create a RESTful API with NodeJS, Express and MongoDB
KEY
Nodejs web,db,hosting
PPTX
Javascript Bundling and modularization
PDF
Using Vagrant for Local WordPress Development
PDF
ServiceWorker: New game changer is coming!
KEY
Server side scripting smack down - Node.js vs PHP
PDF
ClojureScript@node
Introduction to node.js
Create a RESTful API with NodeJS, Express and MongoDB
Nodejs web,db,hosting
Javascript Bundling and modularization
Using Vagrant for Local WordPress Development
ServiceWorker: New game changer is coming!
Server side scripting smack down - Node.js vs PHP
ClojureScript@node

What's hot (20)

PDF
Welcome to ClojureScript
PDF
The SPDY Protocol
ODP
Presentation of JSConf.eu
PDF
Node intro
PDF
Overview: How to Measure your WebApp
PDF
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
PPT
Top4top Showcase
 
PDF
NodeJS: n00b no more
PDF
System webpack-jspm
PPT
PPT
Nodejs - Building a RESTful API
PDF
Webpack: your final module bundler
PDF
Once upon a time, there were css, js and server-side rendering
PDF
Compass VS Less
PDF
JavaScript development methodology
PPT
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
PDF
NodeWay in my project & sails.js
PPTX
Packing for the Web with Webpack
PDF
Module, AMD, RequireJS
Welcome to ClojureScript
The SPDY Protocol
Presentation of JSConf.eu
Node intro
Overview: How to Measure your WebApp
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
Top4top Showcase
 
NodeJS: n00b no more
System webpack-jspm
Nodejs - Building a RESTful API
Webpack: your final module bundler
Once upon a time, there were css, js and server-side rendering
Compass VS Less
JavaScript development methodology
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
NodeWay in my project & sails.js
Packing for the Web with Webpack
Module, AMD, RequireJS
Ad

Viewers also liked (6)

PPT
Node.JS security
PDF
Surviving Web Security - Node Interactive
PPTX
Javascript Security - Three main methods of defending your MEAN stack
PDF
Complete MVC on NodeJS
PPTX
ASFWS 2012 WS Security - REST vs SOAP par Sylvain Maret
PDF
ASFWS 2012 - Node.js Security – Old vulnerabilities in new dresses par Sven V...
Node.JS security
Surviving Web Security - Node Interactive
Javascript Security - Three main methods of defending your MEAN stack
Complete MVC on NodeJS
ASFWS 2012 WS Security - REST vs SOAP par Sylvain Maret
ASFWS 2012 - Node.js Security – Old vulnerabilities in new dresses par Sven V...
Ad

Similar to Server Side Apocalypse, JS (20)

PPTX
Intro to Node.js (v1)
DOCX
unit 2 of Full stack web development subject
PDF
Node js (runtime environment + js library) platform
PPTX
Basic Concept of Node.js & NPM
PDF
An introduction to Node.js
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
PDF
Node.js for beginner
PPTX
Mastering node.js, part 1 - introduction
PPTX
Overview of Node JS
PPTX
Introduction to NodeJS JSX is an extended Javascript based language used by R...
PPTX
Node js for beginners
PDF
🚀 Node.js Simplified – A Visual Guide for Beginners!
PPTX
Node js meetup
PDF
PDF
Nodejs vatsal shah
PPTX
Introduction to node.js By Ahmed Assaf
PPTX
Introduction to node.js GDD
PPTX
Nodejs
PDF
What is Node.js_ Where, When & How To Use It.pdf
Intro to Node.js (v1)
unit 2 of Full stack web development subject
Node js (runtime environment + js library) platform
Basic Concept of Node.js & NPM
An introduction to Node.js
Server Side Web Development Unit 1 of Nodejs.pptx
Node.js for beginner
Mastering node.js, part 1 - introduction
Overview of Node JS
Introduction to NodeJS JSX is an extended Javascript based language used by R...
Node js for beginners
🚀 Node.js Simplified – A Visual Guide for Beginners!
Node js meetup
Nodejs vatsal shah
Introduction to node.js By Ahmed Assaf
Introduction to node.js GDD
Nodejs
What is Node.js_ Where, When & How To Use It.pdf

Recently uploaded (20)

PDF
AutoCAD Professional Crack 2025 With License Key
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Transform Your Business with a Software ERP System
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Download FL Studio Crack Latest version 2025 ?
AutoCAD Professional Crack 2025 With License Key
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Digital Systems & Binary Numbers (comprehensive )
Odoo Companies in India – Driving Business Transformation.pdf
CHAPTER 2 - PM Management and IT Context
Computer Software and OS of computer science of grade 11.pptx
L1 - Introduction to python Backend.pptx
Wondershare Filmora 15 Crack With Activation Key [2025
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
Designing Intelligence for the Shop Floor.pdf
17 Powerful Integrations Your Next-Gen MLM Software Needs
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Advanced SystemCare Ultimate Crack + Portable (2025)
Transform Your Business with a Software ERP System
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Download FL Studio Crack Latest version 2025 ?

Server Side Apocalypse, JS

  • 2. About Me Md. Sohel Rana Founder, NerdDevs http://www.nerddevs.com twitter : @sohel023010 skype : sohel023010 http://blog.sohel.me
  • 3. Client   Browser   A Desktop App   Rest Client   Server? Yes!
  • 4. Server   Serves data, images, files, audio, video etc.   Sometimes foods as well! Foodpanda J
  • 5. Server Side Scripting   ASP, ASP.NET, Java, PHP, Haskell, Perl, Python, Ruby and so on!   And also JavaScript   JavaScript brought non-blocking IO   It changed the way how server works   We got NodeJS
  • 6. NodeJS   A runtime environment to support JavaScript as server side language   Built on V8-JavaScript Engine of Chrome, Fast   Event-driven, non- blocking I/O
  • 7. NodeJS   Advantages over others - Asynchronous I/O, more request can server - JavaScript as a Server Side language - Event Driven - Callbacks - A good package manager “NPM”   Disadvantages - Single threaded - Lack of standard libraries
  • 8. NodeJS An http server : var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello Worldn'); }).listen(9000, '127.0.0.1'); console.log('Server running at http://127.0.0.1:9000/');
  • 9. Node Modules   A functional unit that performs specified actions   Loaded using require(‘module_name’)   Usually placed at node_modules folder   Non-native modules loaded searching upwards
  • 10. Node Modules A simple module : // “modules/calculator.js” exports.add = function(a, b){ return a+b ; }; exports.subtract = function(a, b){ return a-b; }; var Calculator = require('./module/calculator.js'); var addTwoNumber = Calculator.add(5,7);
  • 11. NPM   NPM- nodejs package manager   Used for install/ uninstall node programs   Can be used to install dependencies package.json is used to define dependencies //pakage.json { "name": "backbone-express-boilerplate", "version": "1.0.0", "scripts": { "start": "node ./server/bin/www" }, "dependencies": { "express": "^4.12.3", "body-parser": "~1.12.0", "cookie-parser": "~1.3.4", "jade": "~1.9.2", "serve-favicon": "~2.2.0" }, "repository": { "type": "git", "url": "https://github.com/sohel-rana/backbone- express-boilerplate.git" }, "author": "Sohel Rana”, "bugs": { "url": "https://github.com/sohel-rana/backbone- express-boilerplate/issues" }, "homepage": "https://github.com/sohel-rana/ backbone-express-boilerplate" }
  • 12. Web Frameworks NodeJS provides core modules   Requires lots of effort for web apps   Express, Sails etc. provides lots of feature top of it   Makes the project manageable
  • 13. Case Studies   LinkedIn moved from Rails to Node, reduced their server uses from 30 to 3   Microsoft, Walmart, eBay, Paypal all uses nodejs for some of their services   And there are many more here
  • 14. Throw all?   Throw all other and use NodeJS? NO! NodeJS is good to handle many request.   But will not perform well when we need more CPU   Suitable for real-time applications   Chat, online games , collaboration tools etc.