Node Web Development [electronic resource].
by
Herron, David, 1820-1900.
ISBN
:
9781782163312
9781782163305
Title
:
Node Web Development [electronic resource].
Author
:
Herron, David, 1820-1900.
Personal Author
:
Herron, David, 1820-1900.
Edition
:
2nd ed.
Publication Information
:
Birmingham : Packt Publishing, 2013.
Physical Description
:
1 online resource (248 pages)
General Note
:
Chapter 5: Implementing a Simple Express Application.
Contents
:
Cover; Copyright; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: About Node; The capabilities of Node; Server-side JavaScript; Why should you use Node?; Threaded versus asynchronous event-driven architecture; Performance and utilization; Is Node a cancerous scalability disaster?; Server utilization, the bottom line, and green web hosting; 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 on Mac OS X with MacPorts.
Installing on Mac OS X with HomebrewInstalling on Linux from package management systems; Installing the Node distribution from nodejs.org; Installing Node on Windows using Chocolatey Gallery; Installing the StrongLoop Node distribution; Installing from source on POSIX-like systems; Installing prerequisites; Installing developer tools on Mac OS X; Installing from source for all POSIX-like systems; Maintaining multiple Node installs simultaneously; Run a few commands; testing the commands; Node's command-line tools; Running a simple script with Node; Launching a server with Node.
Npm -- the Node package managerStarting Node servers at system startup; Summary; Chapter 3: Node Modules; Defining a module; Node modules; Node's algorithm for resolving require(module); Module identifiers and path names; Local modules within your application; Bundling external dependencies with your application; System-wide modules in NODE_PATH and elsewhere; Complex modules -- modules as directories; Node package manager; The npm package format; Finding npm packages; Using the npm commands; Getting help with npm; Viewing package information; Installing an npm package.
Installing native code modules on WindowsInstalling packages local to a module; Eliminating duplicate modules installed beneath node_modules; Listing the currently installed packages; Package scripts; Editing and exploring installed package content; Updating outdated packages you've installed; Uninstalling an installed npm package; Developing and publishing npm packages; npm configuration settings; Package version strings and ranges; CommonJS modules; Demonstrating module encapsulation; Summary; Chapter 4: HTTP Servers and Clients -- A Web Application's First Steps.
Sending and receiving events with EventEmittersEventEmitter theory; HTTP server applications; HTTP Sniffer -- listening to the HTTP conversation; Web application frameworks; Getting started with Express; Walking through the default Express application; Calculating the Fibonacci sequence with Express; Computationally intensive code and the event loop; Algorithmic refactoring; Making HTTP Client requests; Calling a REST backend service from an Express application; Implementing a simple REST server with Express; Refactoring the Fibonacci application for REST; Some RESTful Node modules; Summary.
Local Note
:
eBooks on EBSCOhost
Subject Term
:
Web site development.
Web sites -- Design.
Web sites -- Programming.
Format
:
Electronic Resources
Electronic Access
:
Publication Date
:
2013
Publication Information
:
Birmingham : Packt Publishing, 2013.
Shelf Number | Material Type | Copy | Shelf Location | Status |
---|
006.76 | 1:E-BOOK | 1 | 1:ONLINE | Available for online access and/or download |