100% found this document useful (2 votes)
2K views

Node JS

The document introduces NodeJS as a JavaScript runtime environment used for building scalable network applications like web servers and provides an overview of its basic usage and capabilities. It discusses NodeJS fundamentals like modules, callbacks, and the async library for handling asynchronous code. The document also demonstrates several examples of using NodeJS for web development, real-time applications, and mobile integration.

Uploaded by

Joshua Berg
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
2K views

Node JS

The document introduces NodeJS as a JavaScript runtime environment used for building scalable network applications like web servers and provides an overview of its basic usage and capabilities. It discusses NodeJS fundamentals like modules, callbacks, and the async library for handling asynchronous code. The document also demonstrates several examples of using NodeJS for web development, real-time applications, and mobile integration.

Uploaded by

Joshua Berg
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 131

NodeJS

Tjiu Suryanto
Rev. 0ct 01, 2013

BorneviaCRM

NodeJS
Introduction Basic Flow control ExpressJS (web server) Comet (real time push)

NodeJS = Node.js

NodeJS can be used for...

Database

Home Automation

Robot Controller

Getting NodeJS

Getting it (from source)

Getting it (packaged)

NodeJS Basics

Demo Time!

Demo 1

Cooool! But now what????

NodeJS is NOT a framework


It's a JS interpreter!

In order to unleash its full potential, we need to include modules

Just like the ol' times

How?

Getting NPM (source)

Getting NPM (automated installer)

Callback Hell

Query 1

Query 2

Query 3

Do something useful

Chrismas tree code

Meet async

async

Getting async

$ npm install async

............that's it!

It's Time for a Demo!

Demo 2

Now..... Whenever you have a bunch of IO calls

Async :)

NodeJS Web Development

Demo!

Demo 3

Demo!

Demo 4

Let's See How it Works (Demo)

Demo 5

Comet

Initialization

Core app

Socket.io Demo

Demo 6

Bonus! NodeJS + Android

Android Location Tracker

3 1 3

2 3

DEMO

Demo 7

ANY QUESTIONS???

You might also like