SlideShare a Scribd company logo
NODE.JS
WEB/DB/HOSTING
       허광남
   kenu@okjsp.pe.kr
NODE.JS WEB FRAMEWORK
      http://expressjs.com/
EXPRESS WEB FRAMEWORK

• Insanely     fast (and small)

• server-side     JavaScript web development framework

• built   on

  • [node](http://nodejs.org)

  • [Connect](http://github.com/senchalabs/connect)
var app = express.createServer();



app.get('/', function(req, res){

      res.send('Hello World');

});



app.listen(3000);
INSTALL



npm install express

npm install -g express
QUICK START


• Create   the app:

 •$   npm install -g express

 •$   express /tmp/foo && cd /tmp/foo
QUICK START

• Install   dependencies:

  •$   npm install -d



• Start     the server:

  •$   node app.js
STRUCTURE
FEATURES


* Robust routing
* Redirection helpers
* Dynamic view helpers
* Content negotiation
* Focus on high performance
* View rendering and partials support
FEATURES


* Environment based configuration
* Session based flash notifications
* Built on [Connect](http://github.com/senchalabs/connect)
* High test coverage
* Executable for generating applications quickly
* Application level view options
FEATURES
                VIA CONNECT
* Session support
* Cache API
* Mime helpers
* ETag support
* Persistent flash notifications
* Cookie support
* JSON-RPC
* Logging
* and _much_ more!
DEMO



• express   install && run
NODE.JS IN HOSTING
    http://www.heroku.com
HOSTING PAAS

• joyent

• heroku

• nodester

• cloud    foundry

• node    socket

• nodejitsu
HOSTING IAAS


• Amazon     EC2

• Rackspace

• joyent   cloud
HEROKU


• http://www.heroku.com/

• heroku   client

• foreman

• git
• Windows    xp DEMO

• http://devcenter.heroku.com/categories/node-js

 • foreman   .net framework v4.0.30319

 • http://msdn.microsoft.com/en-us/netframework/
  aa569263.aspx
NODE.JS WITH DB
https://github.com/sidorares/nodejs-mysql-native
MYSQL-NATIVE



• npm   install mysql-native
nodepad mysqltest.js
var db = require("mysql-native").createTCPClient();
db.auto_prepare = true;
function dump_rows(cmd)
{
    cmd.addListener('row', function(r) { console.dir(r); } );
}


db.auth("nodesample", "nodeuser", "password");
dump_rows(db.query("select 1+1,2,3,'4',length('hello')"));
dump_rows(db.execute("select 1+1,2,3,'4',length(?)", ["hello"]));
db.close();
• MySql   protocol documentation:

 • http://forge.mysql.com/wiki/
  MySQL_Internals_ClientServer_Protocol

• Other   node.js mysql clients:

 • http://github.com/felixge/node-mysql

 • http://github.com/Sannis/node-mysql-libmysqlclient

 • http://github.com/Guille/node.dbslayer.js
REFERENCES

• Node    Guide 번역

 • http://nodeguide.atelier.weaveus.com/

• Node.js   호스팅

 • http://inspiredjw.tistory.com/2

• Node.js   기술 요약 정리
 •   http://www.webresourcesdepot.com/the-awesome-node-js-and-its-gang/

More Related Content

What's hot (20)

PDF
Sails.js Model / ORM introduce
謝 宗穎
 
KEY
CloudFoundry@home
Yohei Sasaki
 
PPT
Nodejs - Building a RESTful API
Sang Cù
 
PDF
Complete MVC on NodeJS
Hüseyin BABAL
 
PDF
Sails.js Intro
Nicholas Jansma
 
PDF
Advanced front-end automation with npm scripts
k88hudson
 
PDF
Production Ready Javascript With Grunt
XB Software, Ltd.
 
PPTX
Windows Azure Web Sites - Things they don’t teach kids in school - BuildStuffLT
Maarten Balliauw
 
PDF
Node intro
Vishal Sharma
 
PDF
NodeJS: n00b no more
Ben Peachey
 
PPTX
CasperJS
LearningTech
 
PPTX
Web development using nodejs
Vaisakh Babu
 
PPTX
[Blibli Brown Bag] Nodejs - The Other Side of Javascript
Irfan Maulana
 
PDF
Phantom js quick start
ji guang
 
PDF
OSGi in Action - How we use OSGi to build Open Liberty - Alasdair Nottingham ...
mfrancis
 
PDF
NodeWay in my project & sails.js
Dmytro Ovcharenko
 
PDF
Preprocessor Workflow with Grunt
Vlad Filippov
 
PDF
Async Web and Python
Jasim Muhammed
 
KEY
An Introduction to Node.js Development with Windows Azure
Troy Miles
 
PPT
Web assembly overview by Mikhail Sorokovsky
Valeriia Maliarenko
 
Sails.js Model / ORM introduce
謝 宗穎
 
CloudFoundry@home
Yohei Sasaki
 
Nodejs - Building a RESTful API
Sang Cù
 
Complete MVC on NodeJS
Hüseyin BABAL
 
Sails.js Intro
Nicholas Jansma
 
Advanced front-end automation with npm scripts
k88hudson
 
Production Ready Javascript With Grunt
XB Software, Ltd.
 
Windows Azure Web Sites - Things they don’t teach kids in school - BuildStuffLT
Maarten Balliauw
 
Node intro
Vishal Sharma
 
NodeJS: n00b no more
Ben Peachey
 
CasperJS
LearningTech
 
Web development using nodejs
Vaisakh Babu
 
[Blibli Brown Bag] Nodejs - The Other Side of Javascript
Irfan Maulana
 
Phantom js quick start
ji guang
 
OSGi in Action - How we use OSGi to build Open Liberty - Alasdair Nottingham ...
mfrancis
 
NodeWay in my project & sails.js
Dmytro Ovcharenko
 
Preprocessor Workflow with Grunt
Vlad Filippov
 
Async Web and Python
Jasim Muhammed
 
An Introduction to Node.js Development with Windows Azure
Troy Miles
 
Web assembly overview by Mikhail Sorokovsky
Valeriia Maliarenko
 

Viewers also liked (7)

PDF
Build web application with express
Sarunyhot Suwannachoti
 
PPT
Building your first Node app with Connect & Express
Christian Joudrey
 
PDF
Developer paradigm shift
Kenu, GwangNam Heo
 
PDF
오픈소스 개요
Kenu, GwangNam Heo
 
PDF
소셜 코딩 GitHub & branch & branch strategy
Kenu, GwangNam Heo
 
PDF
Social Dev Trend
Kenu, GwangNam Heo
 
PDF
Elastic stack
Kenu, GwangNam Heo
 
Build web application with express
Sarunyhot Suwannachoti
 
Building your first Node app with Connect & Express
Christian Joudrey
 
Developer paradigm shift
Kenu, GwangNam Heo
 
오픈소스 개요
Kenu, GwangNam Heo
 
소셜 코딩 GitHub & branch & branch strategy
Kenu, GwangNam Heo
 
Social Dev Trend
Kenu, GwangNam Heo
 
Elastic stack
Kenu, GwangNam Heo
 
Ad

Similar to Nodejs web,db,hosting (20)

PDF
Introduction to Node.js: What, why and how?
Christian Joudrey
 
PDF
(WS14) Sasa Matijasic - Node.js i "novi" web
Web::Strategija
 
PDF
Node js introduction
Alex Su
 
KEY
nodecalgary1
Eric Kryski
 
PPTX
Building and Scaling Node.js Applications
Ohad Kravchick
 
PDF
Node.js in action
Simon Su
 
PPTX
Introduction to node.js GDD
Sudar Muthu
 
PPTX
Node js installation steps.pptx slide share ppts
HemaSenthil5
 
KEY
Practical Use of MongoDB for Node.js
async_io
 
PPTX
module for backend full stack applications 1.pptx
hemalathas752360
 
PPT
Exploring Node.jS
Deepu S Nath
 
PPTX
Nodejs
Vinod Kumar Marupu
 
PDF
Node.js Web Development .pdf
Abanti Aazmin
 
PPTX
Introduction to Node.js
Winston Hsieh
 
PDF
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
PPTX
Introduction to Node.js
Vikash Singh
 
KEY
Writing robust Node.js applications
Tom Croucher
 
KEY
A nodejs application
Robbie Clutton
 
PPTX
An overview of node.js
valuebound
 
KEY
Dcjq node.js presentation
async_io
 
Introduction to Node.js: What, why and how?
Christian Joudrey
 
(WS14) Sasa Matijasic - Node.js i "novi" web
Web::Strategija
 
Node js introduction
Alex Su
 
nodecalgary1
Eric Kryski
 
Building and Scaling Node.js Applications
Ohad Kravchick
 
Node.js in action
Simon Su
 
Introduction to node.js GDD
Sudar Muthu
 
Node js installation steps.pptx slide share ppts
HemaSenthil5
 
Practical Use of MongoDB for Node.js
async_io
 
module for backend full stack applications 1.pptx
hemalathas752360
 
Exploring Node.jS
Deepu S Nath
 
Node.js Web Development .pdf
Abanti Aazmin
 
Introduction to Node.js
Winston Hsieh
 
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
Introduction to Node.js
Vikash Singh
 
Writing robust Node.js applications
Tom Croucher
 
A nodejs application
Robbie Clutton
 
An overview of node.js
valuebound
 
Dcjq node.js presentation
async_io
 
Ad

More from Kenu, GwangNam Heo (20)

PDF
이클립스 플랫폼
Kenu, GwangNam Heo
 
PDF
About Programmer 2021
Kenu, GwangNam Heo
 
PDF
채팅 소스부터 Https 주소까지
Kenu, GwangNam Heo
 
PDF
Java in 2 hours
Kenu, GwangNam Heo
 
PDF
Dev team chronicles
Kenu, GwangNam Heo
 
PDF
개발자가 바라보는 자바의 미래 - 2018
Kenu, GwangNam Heo
 
PDF
오픈 소스 사용 매뉴얼
Kenu, GwangNam Heo
 
PDF
about Programmer 2018
Kenu, GwangNam Heo
 
PDF
Cloud developer evolution
Kenu, GwangNam Heo
 
PDF
Social Coding GitHub 2015
Kenu, GwangNam Heo
 
PDF
오픈소스 개발도구 2014
Kenu, GwangNam Heo
 
PDF
Mean stack Start
Kenu, GwangNam Heo
 
PDF
모바일 웹앱 프로그래밍 과정
Kenu, GwangNam Heo
 
PDF
JavaScript 2014 프론트엔드 기술 리뷰
Kenu, GwangNam Heo
 
PDF
jQuery 구조와 기능
Kenu, GwangNam Heo
 
PDF
01이제는 모바일 세상이다
Kenu, GwangNam Heo
 
PDF
Eclipse code quality
Kenu, GwangNam Heo
 
PDF
"협동조합, 참 좋다" 독후감
Kenu, GwangNam Heo
 
PDF
무료클라우드호스팅
Kenu, GwangNam Heo
 
PDF
프로그래머
Kenu, GwangNam Heo
 
이클립스 플랫폼
Kenu, GwangNam Heo
 
About Programmer 2021
Kenu, GwangNam Heo
 
채팅 소스부터 Https 주소까지
Kenu, GwangNam Heo
 
Java in 2 hours
Kenu, GwangNam Heo
 
Dev team chronicles
Kenu, GwangNam Heo
 
개발자가 바라보는 자바의 미래 - 2018
Kenu, GwangNam Heo
 
오픈 소스 사용 매뉴얼
Kenu, GwangNam Heo
 
about Programmer 2018
Kenu, GwangNam Heo
 
Cloud developer evolution
Kenu, GwangNam Heo
 
Social Coding GitHub 2015
Kenu, GwangNam Heo
 
오픈소스 개발도구 2014
Kenu, GwangNam Heo
 
Mean stack Start
Kenu, GwangNam Heo
 
모바일 웹앱 프로그래밍 과정
Kenu, GwangNam Heo
 
JavaScript 2014 프론트엔드 기술 리뷰
Kenu, GwangNam Heo
 
jQuery 구조와 기능
Kenu, GwangNam Heo
 
01이제는 모바일 세상이다
Kenu, GwangNam Heo
 
Eclipse code quality
Kenu, GwangNam Heo
 
"협동조합, 참 좋다" 독후감
Kenu, GwangNam Heo
 
무료클라우드호스팅
Kenu, GwangNam Heo
 
프로그래머
Kenu, GwangNam Heo
 

Recently uploaded (20)

PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 

Nodejs web,db,hosting

  • 2. NODE.JS WEB FRAMEWORK http://expressjs.com/
  • 3. EXPRESS WEB FRAMEWORK • Insanely fast (and small) • server-side JavaScript web development framework • built on • [node](http://nodejs.org) • [Connect](http://github.com/senchalabs/connect)
  • 4. var app = express.createServer(); app.get('/', function(req, res){ res.send('Hello World'); }); app.listen(3000);
  • 5. INSTALL npm install express npm install -g express
  • 6. QUICK START • Create the app: •$ npm install -g express •$ express /tmp/foo && cd /tmp/foo
  • 7. QUICK START • Install dependencies: •$ npm install -d • Start the server: •$ node app.js
  • 9. FEATURES * Robust routing * Redirection helpers * Dynamic view helpers * Content negotiation * Focus on high performance * View rendering and partials support
  • 10. FEATURES * Environment based configuration * Session based flash notifications * Built on [Connect](http://github.com/senchalabs/connect) * High test coverage * Executable for generating applications quickly * Application level view options
  • 11. FEATURES VIA CONNECT * Session support * Cache API * Mime helpers * ETag support * Persistent flash notifications * Cookie support * JSON-RPC * Logging * and _much_ more!
  • 12. DEMO • express install && run
  • 13. NODE.JS IN HOSTING http://www.heroku.com
  • 14. HOSTING PAAS • joyent • heroku • nodester • cloud foundry • node socket • nodejitsu
  • 15. HOSTING IAAS • Amazon EC2 • Rackspace • joyent cloud
  • 17. • Windows xp DEMO • http://devcenter.heroku.com/categories/node-js • foreman .net framework v4.0.30319 • http://msdn.microsoft.com/en-us/netframework/ aa569263.aspx
  • 19. MYSQL-NATIVE • npm install mysql-native
  • 20. nodepad mysqltest.js var db = require("mysql-native").createTCPClient(); db.auto_prepare = true; function dump_rows(cmd) { cmd.addListener('row', function(r) { console.dir(r); } ); } db.auth("nodesample", "nodeuser", "password"); dump_rows(db.query("select 1+1,2,3,'4',length('hello')")); dump_rows(db.execute("select 1+1,2,3,'4',length(?)", ["hello"])); db.close();
  • 21. • MySql protocol documentation: • http://forge.mysql.com/wiki/ MySQL_Internals_ClientServer_Protocol • Other node.js mysql clients: • http://github.com/felixge/node-mysql • http://github.com/Sannis/node-mysql-libmysqlclient • http://github.com/Guille/node.dbslayer.js
  • 22. REFERENCES • Node Guide 번역 • http://nodeguide.atelier.weaveus.com/ • Node.js 호스팅 • http://inspiredjw.tistory.com/2 • Node.js 기술 요약 정리 • http://www.webresourcesdepot.com/the-awesome-node-js-and-its-gang/

Editor's Notes