SlideShare a Scribd company logo
1 of 33
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
By Chintan Gajjar
Node JS
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
• Introduction of node.js
• NPM
• Node JS
• Express JS
• Working with Database
• Basic Node JS Examples
Agenda For Today
2© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
• Presented a project by Ryan Dahl
• Platform that combined Google’s V8 JavaScript
engine
• Turned the difficult task of writing event-driven server-
side applications into an easy one.
• Non-blocking infrastructure
• Easily construct fast and scalable network services.
• Download the Node.js source code or a pre-built
installer from http://nodejs.org/download/
Introduction of node.js
3© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
Installation of node
4© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
NPM
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
• NPM maintains a centralized repository of public
modules, which you can browse at
http://search.npmjs.org
• Using NPM to Install, Update, and Uninstall Packages
• NPM has two main modes of operation: global and
local.
NPM
6© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
NPM
7© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
• Installing a Module
• $ npm install <package name>
Example : npm install express
• $ npm install <package name>@<version spec>
• $ npm uninstall <package name>
• $ npm uninstall -g <package name>
• $ npm update <package name>
• $ npm update –g <package name>
• Resolving Dependencies.
NPM
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
Node JS
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
10
Why Node JS?
• Node is simple JavaScript.
• Easy it is to get started using.
• Developers tool for working in the non-blocking, event-
driven I/O paradigm.
• Web applications with real-time, two-way connections.
• Querying, Reading from, and Writing to Files.
• Creating and Controlling External Processes
• Reading and Writing Streams of Data
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
11
Traditional
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
12
Node.js
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
13
What can node do?
• Building TCP Servers
• Building HTTP Servers
• Building a TCP Client
• Making HTTP Requests
• Using Datagrams (UDP)
• Securing Your TCP Server with TLS/SSL
• Securing Your HTTP Server with HTTPS
• Testing Modules and Applications
• Controlling the Call back Flow
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
Express JS
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
15
Express.js
 Till now we just saw application in a single file.
 But now what if we want to create a whole application?
 We need something for sure..
 Current scenario:
 No organized file structure, No Modular code, No MVC
architecture, No Routes.
 what will happen: Each time the page loads, everything will
be rerendered again such as the payload, storing sessions
and more.
 That's where express is used.
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
16
Express.js
 Benefits
 File structure
 MVC implementation
 Routings
 Views and Templating
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
17
Express.js
• Express is a popular web application framework for node.
• It simplifies the web server setup – including routing for
static files.
• Creates a directory structure as a start point for organising
your code.
Installing Express
npm install -g express
With Express 4.0 you need to add express-generator
npm install -g express-generator
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
18
Features of Express JS
• Redirection helpers
• Dynamic view helpers
• Application level view options
• View rendering and partials support
• Executable for generating applications quickly
Express is one of the Key Components in Mean.Io
[M-Mongo, E-Express, A-Angular, N-Node]
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
19
Example of Express.js
var express = require('express');
l var app = express();
l app.get('/', function(req, res) {
l res.sendfile('./views/index.html');
l });
l app.get('/about', function(req, res) {
l res.sendfile('./views/about.html');
l });
l app.get('/article', function(req, res) {
l res.sendfile('./views/article.html');
l });
l app.listen(3000);
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
Working with database
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
21
Working with Database
 Connecting to MySQL databases from Node
l var mysql = require('mysql');
l var client = mysql.createClient({
l host: 'localhost',
l user: 'root',
l password: 'root'
l });
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
22
Working with Database
• Connecting to Mongo DB Using Mongoose
Steps:
• Installing and using Mongoose
• Defining schemas and models
Example:
var mongoose = require('mongoose');
var UserSchema = new mongoose.Schema({
username: String,
name: String,
password: String
});
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
Query & Questions
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
THANK YOU
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
By Chintan Gajjar
Collaboration Report
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
26
Work Done
• Blog
• Single Page Applications (Parth Ghiya)
Total Views : 1560
Likes/Comments : 173
Shares : 14
• Meetups
• Ahmedabad Liferay - Pritesh Shah, Gaurav Barot, Amij
Patel
• Ahmedabad JS - Amij Patel, Chintan Gajjar, Parth
Ghiya, Dinesh Radadiya
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
27
Upcoming Tech-Talks
• Hibernate
• Mongo DB
• Bootstrap CSS/Jquery
• Angular JS
• Express JS
• Mean.io
• Liferay Administration
• Spring MVC
• Hadoop
• GIT
• Amazon Web Services
• Linux Fundamentals
• React JS
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
28
Upcoming Contributions
• Reusable components
• Jquery Plugin which disables an event on the selectors
passed (Dinesh Radadiya)
• Backbone plugin helpful in rendering all the templates
(Parth Ghiya, Chintan Gajjar)
• Blogs
• Single Page Applications Continued (Parth Ghiya)
• Responsive Designing (Shreel Desai & Jay Gajjar)
• A Blog on ERP (Pritesh Shah)
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
29
Upcoming Contributions
• Case Studies
• Computer Assisted Coding (Parth Ghiya)
• ERP & HR Solutions Using Idempiere (Pritesh Shah)
• Meetup
• Ahmedabad JS - Topic: Responsive Web Designing &
Mobile first
• Community Contributions
• Meeting Management Portlet (Samir Bhatt)
• Liferay Theme (Chintan Gajjar, Shreel Desai, Jay Gajjar)
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
30
Upcoming Contributions
• Case Studies
• Computer Assisted Coding (Parth Ghiya)
• ERP & HR Solutions Using Idempiere (Pritesh Shah)
• Meetup
• Ahmedabad JS - Topic: Responsive Web Designing &
Mobile first
• Community Contributions
• Meeting Management Portlet (Samir Bhatt)
• Liferay Theme (Chintan Gajjar, Shreel Desai, Jay
Gajjar)
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
31
Upcoming Contributions
• Case Studies
• Computer Assisted Coding (Parth Ghiya)
• ERP & HR Solutions Using Idempiere (Pritesh Shah)
• Meetup
• Ahmedabad JS - Topic: Responsive Web Designing &
Mobile first
• Community Contributions
• Meeting Management Portlet (Samir Bhatt)
• Liferay Theme (Chintan Gajjar, Shreel Desai, Jay
Gajjar)
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
32
Upcoming Contributions
• Book
• Hadoop Backup Recovery & Solution(Amij Patel, Gaurav
Barot, Chintan Mehta)
• Certifications
• Keyur Ranpura Obtained Following Certifications
• AWS Business Professional Course.
• AWS Technical Professional Course.
Congratulations Keyur...!!!!
© 2014 KNOWARTH
SLIDE TITLE
 Click to edit Master text styles
 Second level
 Third level
 Fourth level
 Fifth level
THANK YOU
© 2014 KNOWARTH

More Related Content

What's hot

Bootstrapping angular js with bower grunt yeoman
Bootstrapping angular js with bower grunt yeomanBootstrapping angular js with bower grunt yeoman
Bootstrapping angular js with bower grunt yeomanMakarand Bhatambarekar
 
Drupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalDrupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalVibrant Technologies & Computers
 
MEAN Stack WeNode Barcelona Workshop
MEAN Stack WeNode Barcelona WorkshopMEAN Stack WeNode Barcelona Workshop
MEAN Stack WeNode Barcelona WorkshopValeri Karpov
 
Introduction to mean stack
Introduction to mean stackIntroduction to mean stack
Introduction to mean stackPraveen Gubbala
 
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...Exove
 
Managing Translation Workflows in Drupal 7
Managing Translation Workflows in Drupal 7Managing Translation Workflows in Drupal 7
Managing Translation Workflows in Drupal 7Suzanne Dergacheva
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsMicky Metts
 
The story of language development
The story of language developmentThe story of language development
The story of language developmentHiroshi SHIBATA
 
Why You Should Use MERN Stack for Startup Apps?
Why You Should Use MERN Stack for Startup Apps?Why You Should Use MERN Stack for Startup Apps?
Why You Should Use MERN Stack for Startup Apps?Pixel Crayons
 
Bringing Interactivity to Your Drupal Site with Node.js Integration
Bringing Interactivity to Your Drupal Site with Node.js IntegrationBringing Interactivity to Your Drupal Site with Node.js Integration
Bringing Interactivity to Your Drupal Site with Node.js IntegrationAcquia
 
Midgard Create and editing content via RDFa
Midgard Create and editing content via RDFaMidgard Create and editing content via RDFa
Midgard Create and editing content via RDFaHenri Bergius
 
Adobe AEM for Business Heads
Adobe AEM for Business HeadsAdobe AEM for Business Heads
Adobe AEM for Business HeadsYash Mody
 
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScript
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScriptJS Fest 2018. Александр Скачков. WebAssembly vs JavaScript
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScriptJSFestUA
 
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...David Amend
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on RailsAmit Patel
 
RoR (Ruby on Rails)
RoR (Ruby on Rails)RoR (Ruby on Rails)
RoR (Ruby on Rails)scandiweb
 

What's hot (20)

Bootstrapping angular js with bower grunt yeoman
Bootstrapping angular js with bower grunt yeomanBootstrapping angular js with bower grunt yeoman
Bootstrapping angular js with bower grunt yeoman
 
CQ5 and Sling overview
CQ5 and Sling overviewCQ5 and Sling overview
CQ5 and Sling overview
 
Drupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalDrupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using Drupal
 
Mean stack
Mean stackMean stack
Mean stack
 
MEAN Stack WeNode Barcelona Workshop
MEAN Stack WeNode Barcelona WorkshopMEAN Stack WeNode Barcelona Workshop
MEAN Stack WeNode Barcelona Workshop
 
Introduction to mean stack
Introduction to mean stackIntroduction to mean stack
Introduction to mean stack
 
Let's vue
Let's vueLet's vue
Let's vue
 
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...
Building a Node.JS accelerator for your headless Drupal backend - DrupalCamp ...
 
Managing Translation Workflows in Drupal 7
Managing Translation Workflows in Drupal 7Managing Translation Workflows in Drupal 7
Managing Translation Workflows in Drupal 7
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
The story of language development
The story of language developmentThe story of language development
The story of language development
 
Why You Should Use MERN Stack for Startup Apps?
Why You Should Use MERN Stack for Startup Apps?Why You Should Use MERN Stack for Startup Apps?
Why You Should Use MERN Stack for Startup Apps?
 
Bringing Interactivity to Your Drupal Site with Node.js Integration
Bringing Interactivity to Your Drupal Site with Node.js IntegrationBringing Interactivity to Your Drupal Site with Node.js Integration
Bringing Interactivity to Your Drupal Site with Node.js Integration
 
Next generation Graphics: SVG
Next generation Graphics: SVGNext generation Graphics: SVG
Next generation Graphics: SVG
 
Midgard Create and editing content via RDFa
Midgard Create and editing content via RDFaMidgard Create and editing content via RDFa
Midgard Create and editing content via RDFa
 
Adobe AEM for Business Heads
Adobe AEM for Business HeadsAdobe AEM for Business Heads
Adobe AEM for Business Heads
 
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScript
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScriptJS Fest 2018. Александр Скачков. WebAssembly vs JavaScript
JS Fest 2018. Александр Скачков. WebAssembly vs JavaScript
 
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Rails
 
RoR (Ruby on Rails)
RoR (Ruby on Rails)RoR (Ruby on Rails)
RoR (Ruby on Rails)
 

Similar to NodeJS - KNOWARTH

Web Framework and Struts 2 - KNOWARTH
Web Framework and Struts 2 - KNOWARTHWeb Framework and Struts 2 - KNOWARTH
Web Framework and Struts 2 - KNOWARTHKNOWARTH Technologies
 
Geek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAGeek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAIDERA Software
 
Advanced Web Technology.pptx
Advanced Web Technology.pptxAdvanced Web Technology.pptx
Advanced Web Technology.pptxssuser35fdf2
 
You Got React.js in My PHP
You Got React.js in My PHPYou Got React.js in My PHP
You Got React.js in My PHPTaylor Lovett
 
Seminar: Become a Reliable Web Programmer
Seminar: Become a Reliable Web ProgrammerSeminar: Become a Reliable Web Programmer
Seminar: Become a Reliable Web ProgrammerAchmad Solichin
 
Full Stack Web Developer (MERN STACK Developer.pptx
Full Stack Web Developer (MERN STACK Developer.pptxFull Stack Web Developer (MERN STACK Developer.pptx
Full Stack Web Developer (MERN STACK Developer.pptxRamudgarYadav
 
FULL stack -> MEAN stack
FULL stack -> MEAN stackFULL stack -> MEAN stack
FULL stack -> MEAN stackAshok Raj
 
Node js installation steps.pptx slide share ppts
Node js installation steps.pptx slide share pptsNode js installation steps.pptx slide share ppts
Node js installation steps.pptx slide share pptsHemaSenthil5
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptxNishchaiyaBayla1
 
Web-Development-ppt.pptx
Web-Development-ppt.pptxWeb-Development-ppt.pptx
Web-Development-ppt.pptxAADITYADEVA
 
Do WordPress developers write code?
Do WordPress developers write code?Do WordPress developers write code?
Do WordPress developers write code?Stanko Metodiev
 
Unboxing ASP.NET Core
Unboxing ASP.NET CoreUnboxing ASP.NET Core
Unboxing ASP.NET CoreKevin Leung
 
Generic repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkGeneric repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkMd. Mahedee Hasan
 

Similar to NodeJS - KNOWARTH (20)

Angular JS - KNOWARTH
Angular JS - KNOWARTHAngular JS - KNOWARTH
Angular JS - KNOWARTH
 
Web Framework and Struts 2 - KNOWARTH
Web Framework and Struts 2 - KNOWARTHWeb Framework and Struts 2 - KNOWARTH
Web Framework and Struts 2 - KNOWARTH
 
MongoDB - KNOWARTH
MongoDB - KNOWARTHMongoDB - KNOWARTH
MongoDB - KNOWARTH
 
Bootstrap - KNOWARTH
Bootstrap - KNOWARTHBootstrap - KNOWARTH
Bootstrap - KNOWARTH
 
Geek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAGeek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBA
 
Advanced Web Technology.pptx
Advanced Web Technology.pptxAdvanced Web Technology.pptx
Advanced Web Technology.pptx
 
Nodejs
NodejsNodejs
Nodejs
 
You Got React.js in My PHP
You Got React.js in My PHPYou Got React.js in My PHP
You Got React.js in My PHP
 
AdoptJSRJavaEE8CON
AdoptJSRJavaEE8CONAdoptJSRJavaEE8CON
AdoptJSRJavaEE8CON
 
Seminar: Become a Reliable Web Programmer
Seminar: Become a Reliable Web ProgrammerSeminar: Become a Reliable Web Programmer
Seminar: Become a Reliable Web Programmer
 
Full Stack Web Developer (MERN STACK Developer.pptx
Full Stack Web Developer (MERN STACK Developer.pptxFull Stack Web Developer (MERN STACK Developer.pptx
Full Stack Web Developer (MERN STACK Developer.pptx
 
FULL stack -> MEAN stack
FULL stack -> MEAN stackFULL stack -> MEAN stack
FULL stack -> MEAN stack
 
Node js installation steps.pptx slide share ppts
Node js installation steps.pptx slide share pptsNode js installation steps.pptx slide share ppts
Node js installation steps.pptx slide share ppts
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptx
 
Web-Development-ppt.pptx
Web-Development-ppt.pptxWeb-Development-ppt.pptx
Web-Development-ppt.pptx
 
Java 8 - KNOWARTH
Java 8 - KNOWARTHJava 8 - KNOWARTH
Java 8 - KNOWARTH
 
Do WordPress developers write code?
Do WordPress developers write code?Do WordPress developers write code?
Do WordPress developers write code?
 
Unboxing ASP.NET Core
Unboxing ASP.NET CoreUnboxing ASP.NET Core
Unboxing ASP.NET Core
 
MERN PPT
MERN PPTMERN PPT
MERN PPT
 
Generic repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkGeneric repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity Framework
 

Recently uploaded

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

NodeJS - KNOWARTH

  • 1. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level By Chintan Gajjar Node JS © 2014 KNOWARTH
  • 2. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level • Introduction of node.js • NPM • Node JS • Express JS • Working with Database • Basic Node JS Examples Agenda For Today 2© 2014 KNOWARTH
  • 3. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level • Presented a project by Ryan Dahl • Platform that combined Google’s V8 JavaScript engine • Turned the difficult task of writing event-driven server- side applications into an easy one. • Non-blocking infrastructure • Easily construct fast and scalable network services. • Download the Node.js source code or a pre-built installer from http://nodejs.org/download/ Introduction of node.js 3© 2014 KNOWARTH
  • 4. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level Installation of node 4© 2014 KNOWARTH
  • 5. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level NPM © 2014 KNOWARTH
  • 6. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level • NPM maintains a centralized repository of public modules, which you can browse at http://search.npmjs.org • Using NPM to Install, Update, and Uninstall Packages • NPM has two main modes of operation: global and local. NPM 6© 2014 KNOWARTH
  • 7. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level NPM 7© 2014 KNOWARTH
  • 8. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level • Installing a Module • $ npm install <package name> Example : npm install express • $ npm install <package name>@<version spec> • $ npm uninstall <package name> • $ npm uninstall -g <package name> • $ npm update <package name> • $ npm update –g <package name> • Resolving Dependencies. NPM © 2014 KNOWARTH
  • 9. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level Node JS © 2014 KNOWARTH
  • 10. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 10 Why Node JS? • Node is simple JavaScript. • Easy it is to get started using. • Developers tool for working in the non-blocking, event- driven I/O paradigm. • Web applications with real-time, two-way connections. • Querying, Reading from, and Writing to Files. • Creating and Controlling External Processes • Reading and Writing Streams of Data © 2014 KNOWARTH
  • 11. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 11 Traditional © 2014 KNOWARTH
  • 12. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 12 Node.js © 2014 KNOWARTH
  • 13. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 13 What can node do? • Building TCP Servers • Building HTTP Servers • Building a TCP Client • Making HTTP Requests • Using Datagrams (UDP) • Securing Your TCP Server with TLS/SSL • Securing Your HTTP Server with HTTPS • Testing Modules and Applications • Controlling the Call back Flow © 2014 KNOWARTH
  • 14. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level Express JS © 2014 KNOWARTH
  • 15. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 15 Express.js  Till now we just saw application in a single file.  But now what if we want to create a whole application?  We need something for sure..  Current scenario:  No organized file structure, No Modular code, No MVC architecture, No Routes.  what will happen: Each time the page loads, everything will be rerendered again such as the payload, storing sessions and more.  That's where express is used. © 2014 KNOWARTH
  • 16. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 16 Express.js  Benefits  File structure  MVC implementation  Routings  Views and Templating © 2014 KNOWARTH
  • 17. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 17 Express.js • Express is a popular web application framework for node. • It simplifies the web server setup – including routing for static files. • Creates a directory structure as a start point for organising your code. Installing Express npm install -g express With Express 4.0 you need to add express-generator npm install -g express-generator © 2014 KNOWARTH
  • 18. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 18 Features of Express JS • Redirection helpers • Dynamic view helpers • Application level view options • View rendering and partials support • Executable for generating applications quickly Express is one of the Key Components in Mean.Io [M-Mongo, E-Express, A-Angular, N-Node] © 2014 KNOWARTH
  • 19. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 19 Example of Express.js var express = require('express'); l var app = express(); l app.get('/', function(req, res) { l res.sendfile('./views/index.html'); l }); l app.get('/about', function(req, res) { l res.sendfile('./views/about.html'); l }); l app.get('/article', function(req, res) { l res.sendfile('./views/article.html'); l }); l app.listen(3000); © 2014 KNOWARTH
  • 20. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level Working with database © 2014 KNOWARTH
  • 21. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 21 Working with Database  Connecting to MySQL databases from Node l var mysql = require('mysql'); l var client = mysql.createClient({ l host: 'localhost', l user: 'root', l password: 'root' l }); © 2014 KNOWARTH
  • 22. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 22 Working with Database • Connecting to Mongo DB Using Mongoose Steps: • Installing and using Mongoose • Defining schemas and models Example: var mongoose = require('mongoose'); var UserSchema = new mongoose.Schema({ username: String, name: String, password: String }); © 2014 KNOWARTH
  • 23. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level Query & Questions © 2014 KNOWARTH
  • 24. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level THANK YOU © 2014 KNOWARTH
  • 25. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level By Chintan Gajjar Collaboration Report © 2014 KNOWARTH
  • 26. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 26 Work Done • Blog • Single Page Applications (Parth Ghiya) Total Views : 1560 Likes/Comments : 173 Shares : 14 • Meetups • Ahmedabad Liferay - Pritesh Shah, Gaurav Barot, Amij Patel • Ahmedabad JS - Amij Patel, Chintan Gajjar, Parth Ghiya, Dinesh Radadiya © 2014 KNOWARTH
  • 27. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 27 Upcoming Tech-Talks • Hibernate • Mongo DB • Bootstrap CSS/Jquery • Angular JS • Express JS • Mean.io • Liferay Administration • Spring MVC • Hadoop • GIT • Amazon Web Services • Linux Fundamentals • React JS © 2014 KNOWARTH
  • 28. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 28 Upcoming Contributions • Reusable components • Jquery Plugin which disables an event on the selectors passed (Dinesh Radadiya) • Backbone plugin helpful in rendering all the templates (Parth Ghiya, Chintan Gajjar) • Blogs • Single Page Applications Continued (Parth Ghiya) • Responsive Designing (Shreel Desai & Jay Gajjar) • A Blog on ERP (Pritesh Shah) © 2014 KNOWARTH
  • 29. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 29 Upcoming Contributions • Case Studies • Computer Assisted Coding (Parth Ghiya) • ERP & HR Solutions Using Idempiere (Pritesh Shah) • Meetup • Ahmedabad JS - Topic: Responsive Web Designing & Mobile first • Community Contributions • Meeting Management Portlet (Samir Bhatt) • Liferay Theme (Chintan Gajjar, Shreel Desai, Jay Gajjar) © 2014 KNOWARTH
  • 30. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 30 Upcoming Contributions • Case Studies • Computer Assisted Coding (Parth Ghiya) • ERP & HR Solutions Using Idempiere (Pritesh Shah) • Meetup • Ahmedabad JS - Topic: Responsive Web Designing & Mobile first • Community Contributions • Meeting Management Portlet (Samir Bhatt) • Liferay Theme (Chintan Gajjar, Shreel Desai, Jay Gajjar) © 2014 KNOWARTH
  • 31. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 31 Upcoming Contributions • Case Studies • Computer Assisted Coding (Parth Ghiya) • ERP & HR Solutions Using Idempiere (Pritesh Shah) • Meetup • Ahmedabad JS - Topic: Responsive Web Designing & Mobile first • Community Contributions • Meeting Management Portlet (Samir Bhatt) • Liferay Theme (Chintan Gajjar, Shreel Desai, Jay Gajjar) © 2014 KNOWARTH
  • 32. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level 32 Upcoming Contributions • Book • Hadoop Backup Recovery & Solution(Amij Patel, Gaurav Barot, Chintan Mehta) • Certifications • Keyur Ranpura Obtained Following Certifications • AWS Business Professional Course. • AWS Technical Professional Course. Congratulations Keyur...!!!! © 2014 KNOWARTH
  • 33. SLIDE TITLE  Click to edit Master text styles  Second level  Third level  Fourth level  Fifth level THANK YOU © 2014 KNOWARTH