MEAN Web Development - Second Edition

Develop your real-time MEAN application efficiently using a combination of MongoDB, Express, Angular, and Node

MEAN Web Development - Second Edition

Amos Q. Haviv

3 customer reviews
Develop your real-time MEAN application efficiently using a combination of MongoDB, Express, Angular, and Node
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.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
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785886300
Paperback368 pages

Book Description

The MEAN stack is a collection of the most popular modern tools for web development that helps you build fast, robust, and maintainable web applications.

Starting with the MEAN core frameworks, this pragmatic guide will explain the key concepts of each framework, how to set them up properly, and how to use popular modules to connect it all together. By following the real-world examples shown in this tutorial, you will scaffold your MEAN application architecture, add an authentication layer, and develop an MVC structure to support your project development. You will learn the best practices of maintaining clear and simple code and will see how to avoid common pitfalls.

Finally, you will walk through the different tools and frameworks that will help expedite your daily development cycles.

Watch how your application development grows by learning from the only guide that is solely orientated towards building a full, end-to-end, real-time application using the MEAN stack!

Table of Contents

Chapter 1: Introduction to MEAN
Three-tier web application development
The evolution of JavaScript
Introduction to ECMAScript 2015
Introducing MEAN
Installing MongoDB
Installing Node.js
Introducing npm
Summary
Chapter 2: Getting Started with Node.js
Introduction to Node.js
JavaScript Closures
Node modules
Developing Node.js web applications
Summary
Chapter 3: Building an Express Web Application
Introducing Express
Installing Express
Creating your first Express application
The application, request, and response objects
External middleware
Implementing the MVC pattern
Configuring an Express application
Rendering views
Serving static files
Configuring sessions
Summary
Chapter 4: Introduction to MongoDB
Introduction to NoSQL
Introducing MongoDB
Key features of MongoDB
MongoDB shell
MongoDB databases
MongoDB collections
MongoDB CRUD operations
Summary
Chapter 5: Introduction to Mongoose
Introducing Mongoose
Understanding Mongoose schemas
Extending your Mongoose schema
Defining custom model methods
Model validation
Using Mongoose middleware
Using Mongoose ref fields
Summary
Chapter 6: Managing User Authentication Using Passport
Introducing Passport
Understanding Passport strategies
Understanding Passport OAuth strategies
Summary
Chapter 7: Introduction to Angular
Introducing Angular 2
Introduction to TypeScript
Angular 2 Architecture
The project setup
Managing authentication
Summary
Chapter 8: Creating a MEAN CRUD Module
Introducing CRUD modules
Setting up the Express components
Using the HTTP client
The ReactiveX library
Implementing the Angular module
Wrapping up
Summary
Chapter 9: Adding Real-time Functionality Using Socket.io
Introducing WebSockets
Introducing Socket.io
Installing Socket.io
Building a Socket.io chat
Creating the Chat Angular module
Summary
Chapter 10: Testing MEAN Applications
Introducing JavaScript testing
Testing your Express application
Installing Mocha
Testing your Angular application
Summary
Chapter 11: Automating and Debugging MEAN Applications
Using NPM scripts
Introducing Webpack
Introducing ESLint
Using Nodemon
Debugging Express with V8 inspector
Debugging your application
Debugging Angular applications with Angular Augury
Summary

What You Will Learn

  • Use MongoDB to store and retrieve your application's data
  • Connect your Express application to MongoDB and use the Mongoose module
  • Manage your users' authentication and offer them diverse login options using Passport
  • Structure and use an Angular 2 application in your MEAN project
  • Use Socket.io to create real-time communication between your client and server
  • Test your application's Express and Angular 2 entities

Authors

Table of Contents

Chapter 1: Introduction to MEAN
Three-tier web application development
The evolution of JavaScript
Introduction to ECMAScript 2015
Introducing MEAN
Installing MongoDB
Installing Node.js
Introducing npm
Summary
Chapter 2: Getting Started with Node.js
Introduction to Node.js
JavaScript Closures
Node modules
Developing Node.js web applications
Summary
Chapter 3: Building an Express Web Application
Introducing Express
Installing Express
Creating your first Express application
The application, request, and response objects
External middleware
Implementing the MVC pattern
Configuring an Express application
Rendering views
Serving static files
Configuring sessions
Summary
Chapter 4: Introduction to MongoDB
Introduction to NoSQL
Introducing MongoDB
Key features of MongoDB
MongoDB shell
MongoDB databases
MongoDB collections
MongoDB CRUD operations
Summary
Chapter 5: Introduction to Mongoose
Introducing Mongoose
Understanding Mongoose schemas
Extending your Mongoose schema
Defining custom model methods
Model validation
Using Mongoose middleware
Using Mongoose ref fields
Summary
Chapter 6: Managing User Authentication Using Passport
Introducing Passport
Understanding Passport strategies
Understanding Passport OAuth strategies
Summary
Chapter 7: Introduction to Angular
Introducing Angular 2
Introduction to TypeScript
Angular 2 Architecture
The project setup
Managing authentication
Summary
Chapter 8: Creating a MEAN CRUD Module
Introducing CRUD modules
Setting up the Express components
Using the HTTP client
The ReactiveX library
Implementing the Angular module
Wrapping up
Summary
Chapter 9: Adding Real-time Functionality Using Socket.io
Introducing WebSockets
Introducing Socket.io
Installing Socket.io
Building a Socket.io chat
Creating the Chat Angular module
Summary
Chapter 10: Testing MEAN Applications
Introducing JavaScript testing
Testing your Express application
Installing Mocha
Testing your Angular application
Summary
Chapter 11: Automating and Debugging MEAN Applications
Using NPM scripts
Introducing Webpack
Introducing ESLint
Using Nodemon
Debugging Express with V8 inspector
Debugging your application
Debugging Angular applications with Angular Augury
Summary

Book Details

ISBN 139781785886300
Paperback368 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Angular 2 By Example Book Cover
Angular 2 By Example
$ 35.99
$ 25.20
MEAN Web Development Book Cover
MEAN Web Development
$ 29.99
$ 3.00
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Mastering Node.js Book Cover
Mastering Node.js
$ 29.99
$ 6.00