Node Web Development - Second Edition

JavaScript is no longer just for browsers and this exciting introduction to Node.js will show you how to build data-intensive applications that run in real time. Benefit from an easy, step-by-step approach that really works.
Preview in Mapt

Node Web Development - Second Edition

David Herron

JavaScript is no longer just for browsers and this exciting introduction to Node.js will show you how to build data-intensive applications that run in real time. Benefit from an easy, step-by-step approach that really works.

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Node Web Development - Second Edition Book Cover
Node Web Development - Second Edition
$ 26.99
$ 18.90
Node.js Design Patterns - Second Edition Book Cover
Node.js Design Patterns - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $31.98
Add to Cart

Book Details

ISBN 139781782163305
Paperback248 pages

Book Description

Node.js is a JavaScript platform using an event-driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications that run in real time.

This book gives you an excellent starting point and goes straight to the heart of developing web applications with Node.js. You will go from a rudimentary knowledge of JavaScript or server-side application development to being able to create and maintain your own Node.js application.

Node Web Development shows that JavaScript is not just for browsers anymore. It can be used for web application development, for developing any Internet protocol, for real-time applications, and much more. With this book you will learn through practical examples how to use the HTTP Server and client objects as well as both SQL and MongoDB databases. The book explains how application algorithms are expected to cooperate correctly with the event loop, and gives advice on algorithm refactoring for asynchronous execution through the event loop.

Table of Contents

Chapter 1: About Node
The capabilities of Node
Why should you use Node?
What's in a name – Node, Node.js, or Node.JS?
Summary
Chapter 2: Setting up Node
System requirements
Installing Node using package managers
Installing the StrongLoop Node distribution
Installing from source on POSIX-like systems
Installing developer tools on Mac OS X
Run a few commands; testing the commands
npm – the Node package manager
Starting Node servers at system startup
Summary
Chapter 3: Node Modules
Defining a module
Node package manager
Summary
Chapter 4: HTTP Servers and Clients – A Web Application's First Steps
Sending and receiving events with EventEmitters
HTTP server applications
HTTP Sniffer – listening to the HTTP conversation
Web application frameworks
Getting started with Express
Calculating the Fibonacci sequence with Express
Making HTTP Client requests
Calling a REST backend service from an Express application
Summary
Chapter 5: Implementing a Simple Express Application
Express and the MVC paradigm
Creating the Notes application code
Changing the look of an Express application
Scaling up and running multiple instances
Summary
Chapter 6: Data Storage and Retrieval
Asynchronizing the Notes application
Storing notes in files
Storing notes with the LevelUP data store
Storing notes in SQL – SQLite3
Storing notes the ORM way with the Sequelize module
Storing notes in MongoDB with Mongoose
Summary
Chapter 7: Multiuser Authorization, Deployment, Scaling, and Hosting
User authentication
Deploying Notes on Debian
Scaling to use all cores on multi-core servers
Deploying Notes on cloud hosting (AppFog)
Summary
Chapter 8: Dynamic Interaction between the Client and Server Application
Adding real-time web features to Notes
Introducing Socket.IO
Initializing Socket.IO with Express
Events between the Notes server and client code
Running the Notes application with Socket.IO
Sending messages between users
Summary
Chapter 9: Unit Testing
Testing asynchronous code
Assert – the simplest testing methodology
Testing a model
Testing router functions
Making it easy to run the tests
Summary

What You Will Learn

  • Discover the role of server-side JavaScript in web application development
  • Explore architecture choices in Node.js for performance and throughput
  • Install and use Node.js for both development and deployment
  • Use the Connect and Express application frameworks
  • Deploy both SQL and MongoDB database systems

Authors

Table of Contents

Chapter 1: About Node
The capabilities of Node
Why should you use Node?
What's in a name – Node, Node.js, or Node.JS?
Summary
Chapter 2: Setting up Node
System requirements
Installing Node using package managers
Installing the StrongLoop Node distribution
Installing from source on POSIX-like systems
Installing developer tools on Mac OS X
Run a few commands; testing the commands
npm – the Node package manager
Starting Node servers at system startup
Summary
Chapter 3: Node Modules
Defining a module
Node package manager
Summary
Chapter 4: HTTP Servers and Clients – A Web Application's First Steps
Sending and receiving events with EventEmitters
HTTP server applications
HTTP Sniffer – listening to the HTTP conversation
Web application frameworks
Getting started with Express
Calculating the Fibonacci sequence with Express
Making HTTP Client requests
Calling a REST backend service from an Express application
Summary
Chapter 5: Implementing a Simple Express Application
Express and the MVC paradigm
Creating the Notes application code
Changing the look of an Express application
Scaling up and running multiple instances
Summary
Chapter 6: Data Storage and Retrieval
Asynchronizing the Notes application
Storing notes in files
Storing notes with the LevelUP data store
Storing notes in SQL – SQLite3
Storing notes the ORM way with the Sequelize module
Storing notes in MongoDB with Mongoose
Summary
Chapter 7: Multiuser Authorization, Deployment, Scaling, and Hosting
User authentication
Deploying Notes on Debian
Scaling to use all cores on multi-core servers
Deploying Notes on cloud hosting (AppFog)
Summary
Chapter 8: Dynamic Interaction between the Client and Server Application
Adding real-time web features to Notes
Introducing Socket.IO
Initializing Socket.IO with Express
Events between the Notes server and client code
Running the Notes application with Socket.IO
Sending messages between users
Summary
Chapter 9: Unit Testing
Testing asynchronous code
Assert – the simplest testing methodology
Testing a model
Testing router functions
Making it easy to run the tests
Summary

Book Details

ISBN 139781782163305
Paperback248 pages
Read More

Read More Reviews

Recommended for You

Node.js Design Patterns - Second Edition Book Cover
Node.js Design Patterns - Second Edition
$ 39.99
$ 28.00
Node Security Book Cover
Node Security
$ 17.99
$ 12.60
Mastering JavaScript Promises Book Cover
Mastering JavaScript Promises
$ 39.99
$ 28.00
Developing Microservices with Node.js Book Cover
Developing Microservices with Node.js
$ 31.99
$ 22.40
Artificial Intelligence with Python Book Cover
Artificial Intelligence with Python
$ 39.99
$ 28.00
Express Web Application Development Book Cover
Express Web Application Development
$ 29.99
$ 21.00