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 Express in Node.js
- Create Jade templates
- Define your own custom AngularJS directives that extend the HTML language
- 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