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

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
#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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
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
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
#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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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...
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
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
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

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