SlideShare a Scribd company logo
JavaScript at Backend
Agenda
Agenda
1. What?
Agenda
1. What?
2.Installing
Agenda
1. What?
2.Installing
3.Hello World.
Agenda
1. What?
2.Installing
3.Hello World.
4.NodeJS Internal Modules
Agenda
1. What?
2.Installing
3.Hello World.
4.NodeJS Internal Modules
○fs(file-system) (sync vs async)
Agenda
1. What?
2.Installing
3.Hello World.
4.NodeJS Internal Modules
○fs(file-system) (sync vs async)
5. NPM
Agenda
1. What?
2.Installing
3.Hello World.
4.NodeJS Internal Modules
○fs(file-system) (sync vs async)
5. NPM
6. Using External Modules
What?
Installing
https://github.com/creationix/nvm
Hello World
You can checkout Demo form:
https://github.com/AmitThakkar/JavaScript-at-Backend-NodeJS
Node Internal Modules: fs
var fs = require('fs');
fs.unlinkSync('test2');
console.log('successfully deleted test2');
Node Internal Modules: fs
var fs = require('fs');
fs.unlinkSync('test2');
console.log('successfully deleted test2');
Node Internal Modules: fs
var fs = require('fs');
fs.unlinkSync('test2');
console.log('successfully deleted test2');
Node Internal Modules: fs
var fs = require('fs');
fs.unlink('test', function (err) {
if (err) throw err;
console.log('successfully deleted test');
});
Node Internal Modules: fs
var fs = require('fs');
fs.unlink('test', function (err) {
if (err) throw err;
console.log('successfully deleted test');
});
Node Internal Modules: fs
var fs = require('fs');
fs.unlink('test', function (err) {
if (err) throw err;
console.log('successfully deleted test');
});
You can checkout Demo form: https://github.com/AmitThakkar/JavaScript-at-
Backend-NodeJS
NPM
1. Node Package Manager
2. The NPM command-line tool is bundled with node.
3. npm init
4. npm install --save lodash
5. npm uninstall --save lodash
npm init
npm install --save lodash
npm uninstall --save lodash
You can checkout Demo form: https://github.com/AmitThakkar/JavaScript-at-
Backend-NodeJS
Using External Modules
var _ = require("lodash");
console.log(_.chunk(['a', 'b', 'c', 'd'], 2)); // [ [ 'a', 'b' ], [ 'c', 'd' ] ]
console.log(_.chunk(['a', 'b', 'c', 'd'], 3)); // [ [ 'a', 'b', 'c' ], [ 'd' ] ]
console.log(_.filter([4, 5, 6], function (n) {
return n % 2 == 0;
})); // [ 4, 6 ]
You can checkout Demo form: https://github.com/AmitThakkar/JavaScript-at-
Backend-NodeJS
Questions??
References:
Create Basic HTTP Server with Node.js

More Related Content

PPT
Nodejs quick start
PDF
Install Nagios Core On CentOS 7
PDF
Setup a New Virtualenv for Django in Windows
PPTX
Redis fundamental
PDF
Intro to grunt
KEY
WebClusters, Redis
PDF
Openwrt frontend backend
PDF
Quick Introduction to Node.js
Nodejs quick start
Install Nagios Core On CentOS 7
Setup a New Virtualenv for Django in Windows
Redis fundamental
Intro to grunt
WebClusters, Redis
Openwrt frontend backend
Quick Introduction to Node.js

What's hot (20)

PDF
GruntJS + Wordpress
PDF
SlideShare API ''Get Slideshow Information'' method example with Groovy
PDF
Node.js Lab
PDF
CouchDB Getting Start
PDF
Distributed Data Processing Workshop - SBU
PDF
Openwrt startup
PDF
Elasticsearch 1.x Cluster Installation (VirtualBox)
PDF
LCA 2012: High Availability Sprint
PDF
Create a RESTful API with NodeJS, Express and MongoDB
PDF
Node Web Development 2nd Edition: Chapter2 Setup Node and NPM
PPTX
Powershell dcpp
KEY
Node workShop Basic
PPTX
Band criando api nodejs com type script
PPTX
Introduction to Node.js
PDF
Jenkins and Groovy
PDF
Gerenciando múltiplas versões do PostgreSQL com pgvm
PDF
Ruby on Windows (uru/RubyInstaller/Devkit)
PDF
Capistrano && SystemD
PDF
Hadoop 2.x HDFS Cluster Installation (VirtualBox)
GruntJS + Wordpress
SlideShare API ''Get Slideshow Information'' method example with Groovy
Node.js Lab
CouchDB Getting Start
Distributed Data Processing Workshop - SBU
Openwrt startup
Elasticsearch 1.x Cluster Installation (VirtualBox)
LCA 2012: High Availability Sprint
Create a RESTful API with NodeJS, Express and MongoDB
Node Web Development 2nd Edition: Chapter2 Setup Node and NPM
Powershell dcpp
Node workShop Basic
Band criando api nodejs com type script
Introduction to Node.js
Jenkins and Groovy
Gerenciando múltiplas versões do PostgreSQL com pgvm
Ruby on Windows (uru/RubyInstaller/Devkit)
Capistrano && SystemD
Hadoop 2.x HDFS Cluster Installation (VirtualBox)
Ad

Viewers also liked (8)

PDF
Angular 2 - An Introduction
PPTX
Yarn resource-manager
PPTX
3Camp Tech 2016/11/15 - Front-end tooling: package managers
PDF
Automation in angular js
PDF
JavaScript Fundamentals with Angular and Lodash
PDF
Lodash js
PPTX
AWS Cloud Formation
PDF
Bootstrap 3 Basic - Bangkok WordPress Meetup
Angular 2 - An Introduction
Yarn resource-manager
3Camp Tech 2016/11/15 - Front-end tooling: package managers
Automation in angular js
JavaScript Fundamentals with Angular and Lodash
Lodash js
AWS Cloud Formation
Bootstrap 3 Basic - Bangkok WordPress Meetup
Ad

Similar to Introduction to node js (20)

PPTX
Java script at backend nodejs
PDF
Node.js Web Development SEO Expert Bangladesh LTD.pdf
PPTX
Introduction to node.js By Ahmed Assaf
PPTX
Intro to Node.js (v1)
PDF
Server Side Apocalypse, JS
PPTX
The Javascript Ecosystem
PPTX
Node js meetup
PPT
Introducción y comandos en NodeJS slodte
PPT
Introduction to node.js aka NodeJS
PDF
Node.js.pdf
PPTX
Mastering the Art of Node.js: Development Services for Success
PPTX
Node.js Chapter1
PPTX
Introducing Node.js in an Oracle technology environment (including hands-on)
PPTX
Node js Powerpoint Presentation by PDEU Gandhinagar
PDF
Getting Started with Node.js
DOCX
unit 2 of Full stack web development subject
KEY
Starting Node
PDF
FITC - Node.js 101
PPTX
Nodejs
PDF
Node.js, toy or power tool?
Java script at backend nodejs
Node.js Web Development SEO Expert Bangladesh LTD.pdf
Introduction to node.js By Ahmed Assaf
Intro to Node.js (v1)
Server Side Apocalypse, JS
The Javascript Ecosystem
Node js meetup
Introducción y comandos en NodeJS slodte
Introduction to node.js aka NodeJS
Node.js.pdf
Mastering the Art of Node.js: Development Services for Success
Node.js Chapter1
Introducing Node.js in an Oracle technology environment (including hands-on)
Node js Powerpoint Presentation by PDEU Gandhinagar
Getting Started with Node.js
unit 2 of Full stack web development subject
Starting Node
FITC - Node.js 101
Nodejs
Node.js, toy or power tool?

More from Amit Thakkar (8)

PDF
Packer
PDF
Packer
PPTX
A different thought angular js part-3
PPTX
A different thought angular js part-2
PPTX
A different thought AngularJS
PPTX
Building user interface with react
PPTX
Get expertise with mongo db
PPTX
Design pattern in an expressive language java script
Packer
Packer
A different thought angular js part-3
A different thought angular js part-2
A different thought AngularJS
Building user interface with react
Get expertise with mongo db
Design pattern in an expressive language java script

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectroscopy.pptx food analysis technology
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
sap open course for s4hana steps from ECC to s4
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx

Introduction to node js