Book Image

MEAN Cookbook

By : Nicholas McClay
Book Image

MEAN Cookbook

By: Nicholas McClay

Overview of this book

The MEAN Stack is a framework for web application development using JavaScript-based technologies; MongoDB, Express, Angular, and Node.js. If you want to expand your understanding of using JavaScript to produce a fully functional standalone web application, including the web server, user interface, and database, then this book can help guide you through that transition. This book begins by configuring the frontend of the MEAN stack web application using the Angular JavaScript framework. We then implement common user interface enhancements before moving on to configuring the server layer of our MEAN stack web application using Express for our backend APIs. You will learn to configure the database layer of your MEAN stack web application using MongoDB and the Mongoose framework, including modeling relationships between documents. You will explore advanced topics such as optimizing your web application using WebPack as well as the use of automated testing with the Mocha and Chai frameworks. By the end of the book, you should have acquired a level of proficiency that allows you to confidently build a full production-ready and scalable MEAN stack application.
Table of Contents (13 chapters)

Introduction

When it comes to JavaScript debugging, the humble console.log and logging-based debugging have long been a staple of JavaScript web development. However, one of the most amazing things to come with the revolution of JavaScript over the last decade has been the advancements made in tooling for better debugging of JavaScript. Most notably, the advances made in debugging Node.js have created a lot of attention on developing better ways to analyze and evaluate JavaScript applications while they are running.

Due to Node's underlying dependency on Google Chrome's V8 JavaScript engine, we now have more options available across both front-end and back-end application environments to debug complex JavaScript applications. Many improvements in V8's own JavaScript debugging capability have directly affected Node.js. In fact, with the recent Node.js 8 release,...