Book description
"Practical Node.js is your step-by-step guide to learning how to build a wide range of scalable real-world web applications using a professional development toolkit. Node.js is an innovative and highly efficient platform for creating web services. But Node.js doesn't live in a vacuum! In a modern web development, many different components need to be put together routing, database driver, ORM, session management, OAuth, HTML template engine, CSS compiler and many more.
If you already know the basics of Node.js, now is the time to discover how to bring it to production level by leveraging its vast ecosystem of packages. As a web developer, you'll work with a varied collection of standards and frameworks Practical Node.js shows you how all those pieces fit together.
Practical Node.js takes you from installing all the necessary modules to writing full-stack web applications by harnessing the power of the Express.js and Hapi frameworks, the MongoDB database with Mongoskin and Mongoose, Jade and Handlebars template engines, Stylus and LESS CSS languages, OAuth and Everyauth libraries, and the Socket.IO and Derby libraries, and everything in between. The book also covers how to deploy to Heroku and AWS, daemonize apps, and write REST APIs. You'll build full-stack real-world Node.js apps from scratch, and also discover how to write your own Node.js modules and publish them on NPM. You already know what Node.js is; now learn what you can do with it and how far you can take it!
"Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
-
Chapter 1: Setting up Node.js and Other Essentials
- Installing Node.js and NPM
- Launching Node.js Scripts
-
Node.js Basics and Syntax
- Loose Typing
- Buffer—Node.js Super Data Type
- Object Literal Notation
- Functions
- Arrays
- Prototypal Nature
- Conventions
- Node.js Globals and Reserved Keywords
- __dirname vs. process.cwd
- Browser Application Programming Interface Helpers
- Node.js Core Modules
- Handy Node.js Utilities
- Reading to and Writing from the File System in Node.js
- Streaming Data in Node.js
- Installing Node.js Modules with NPM
- Taming Callbacks in Node.js
- Hello World Server with HTTP Node.js Module
- Debugging Node.js Programs
- Node.js IDEs and Code Editors
- Watching for File Changes
- Summary
- Chapter 2: Using Express.js 4 to Create Node.js Web Apps
- Chapter 3: TDD and BDD for Node.js with Mocha
- Chapter 4: Template Engines: Jade and Handlebars
- Chapter 5: Persistence with MongoDB and Mongoskin
- Chapter 6: Using Sessions and OAuth to Authorize and Authenticate Users in Node.js Apps
-
Chapter 7: Boosting Your Node.js Data with the Mongoose ORM Library
- Mongoose Installation
- Connection Establishment in a Standalone Mongoose Script
- Mongoose Schemas
- Hooks for Keeping Code Organized
- Custom Static and Instance Methods
- Mongoose Models
- Relationships and Joins with Population
- Nested Documents
- Virtual Fields
- Schema Type Behavior Amendment
- Express.js + Mongoose = True MVC
- Summary
- Chapter 8: Building Node.js REST API Servers with Express.js and Hapi
- Chapter 9: Real-Time Apps with WebSocket, Socket.IO, and DerbyJS
-
Chapter 10: Getting Node.js Apps Production Ready
- Environment Variables
- Express.js in Production
- Socket.IO in Production
- Error Handling
- Node.js Domains for Error Handling
- Multithreading with Cluster
- Multithreading with Cluster2
- Event Logging and Monitoring
- Building Tasks with Grunt
- Git for Version Control and Deployments
- Running Tests in Cloud with TravisCI
- Summary
- Chapter 11: Deploying Node.js Apps
- Chapter 12: Publishing Node.js Modules and Contributing to Open Source
- Index
Product information
- Title: Practical Node.js: Building Real-World Scalable Web Apps
- Author(s):
- Release date: July 2014
- Publisher(s): Apress
- ISBN: 9781430265962
You might also like
book
Building APIs with Node.js
Learn how to build scalable APIs using the Node.js platform and ES6 (EcmaScript 2015) with this …
book
Node.js 8 the Right Way
Node.js is the platform of choice for creating modern web services. This fast-paced book gets you …
book
9 Practical Node.js Projects
While there have been quite a few attempts to get JavaScript working as a server-side language, …
book
Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node
Assemble the complete stack required to build a modern web app using MongoDB, Express, React, and …