Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The eBook copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Summary

Node.js, MongoDB and AngularJS Web Development

The definitive guide to building using the MEAN stack to build web applications

Also known as the MEAN stack, Node.js, MongoDB, and AngularJS are three new web development technologies that together provide an easy to implement, fully integrated web development stack. Node.js is a leading server-side programming environment, MongoDB is the most popular NoSQL database, and AngularJS is quickly becoming the leading framework for MVC-based front-end development. Together they allow web programmers to create high-performance sites and applications built completely in JavaScript, from server to client.

Node.js, MongoDB and AngularJS Web Development is a complete guide for web programmers who want to integrate these three technologies into full working solutions. It begins with concise, crystal-clear tutorials on each of the three technologies and then quickly moves on to building several common web applications.

Readers will learn how to use Node.js and MongoDB to build more scalable, high-performance sites, how to leverage AngularJS's innovative MVC approach to structure more effective pages and applications, and how to use all three together to deliver outstanding next-generation Web solutions.

Implement a highly scalable and dynamic web server using Node.js and Express

Build server-side web services in JavaScript

Implement a MongoDB data store for your web applications

Access and interact with MongoDB from Node.js JavaScript code

Define static and dynamic web routes and implement server-side scripts to support them

Implement client-side services that can interact with the Node.js web server

Build dynamic browser views that provide rich user interaction

Add authenticated user accounts to your web applications

Add nested comment components to your web pages

Build an end-to-end shopping cart

Contents at a Glance

Part I: Getting Started

1 Introducing the Node.js-to-AngularJS Stack

2 JavaScript Primer

Part II: Learning Node.js

3 Getting Started with Node.js

4 Using Events, Listeners, Timers, and Callbacks in Node.js

5 Handling Data I/O in Node.js

6 Accessing the File System from Node.js

7 Implementing HTTP Services in Node.js

8 Implementing Socket Services in Node.js

9 Scaling Applications Using Multiple Processors in Node.js

10 Using Additional Node.js Modules

Part III: Learning MongoDB

11 Understanding NoSQL and MongoDB

12 Getting Started with MongoDB

13 Getting Started with MongoDB and Node.js

14 Manipulating MongoDB Documents from Node.js

15 Accessing MongoDB Documents from Node.js

16 Using Mongoose for Structured Schema and Validation

17 Advanced MongoDB Concepts

Part IV: Using Express to Make Life Easier

18 Implementing Express in Node.js

19 Implementing Express Middleware

Part V: Learning AngularJS

20 Getting Started with AngularJS

21 Understanding AngularJS Modules and Dependency Injection

22 Implementing the Scope as a Data Model

23 Using AngularJS Templates to Create Views

24 Implementing Directives in AngularJS Views

25 Implementing AngularJS Services in Web Applications

Part VI: Building Practical Web Application Components

26 Adding User Accounts to Your Website

27 Adding Comment Threads to Pages

28 Creating Your Own Shopping Cart

29 Building Interactive Web 2.0 Application Components

Author Biography

Brad Dayley is a senior software engineer with more than 20 years of experience developing enterprise applications and web interfaces. He has used JavaScript and jQuery for years and is the author of jQuery and JavaScript Phrasebook and Teach Yourself jQuery and JavaScript in 24 Hours. He has designed and implemented a wide array of applications and services, from application servers to complex Web 2.0 interfaces. He is also the author of Python Developer’s Phrasebook and Teach Yourself Django in 24 Hours.

Table of Contents

Introduction

Part I. Learning Node.js1. Getting Started with Node.js2. Understanding I/O and Events in Node.js3. Implementing Callbacks in Node.js4. Implementing HTTP Services in Node.js5. Implementing Socket Services in Node.js6. Accessing the Local System from Node.js7. Handling JSON Data in Node.js8. Using the Buffer Module9. Using the Stream Module10. Creating Your Own Node.js Modules