Mastering Mongoose: Become a Full-Stack Mongoose Expert

Mastering Mongoose: Become a Full-Stack Mongoose Expert

English | 2021 | 157 Pages | PDF, EPUB | 10 MB


The complete guide to building and maintaining fast, production-ready apps with Mongoose, written by Mongoose’s Lead Developer.

Full-Stack Node.js and MongoDB, Explained

Let’s face it, building APIs can be a real pain in the backend. You as an API architect are responsible for shipping new features while maintaining data integrity, security, developer experience, and performance. Imagine yourself being confident you can deliver all this and more.

Mongoose is the most popular Node.js database framework. Over 1 million GitHub projects depend on Mongoose, ranging from student projects to startups to Fortune 500 companies.

Mastering Mongoose will teach you the guiding principles for building production-ready APIs and backend services with Node.js and MongoDB. You’ll learn:

The relationships between the 5 fundamental Mongoose classes: Model, Document, Schema, Connection, and Query
The 3 schema design principles for ensuring consistent performance as your collections grow beyond 100k documents
The 4 different types of Mongoose middleware, and how to use them
How to integrate Mongoose with Express to build HTTP APIs
How to integrate Mongoose with Websockets to build realtime apps

Mastering Mongoose packs all this and more into a concise 153 pages. That means you can become a Mongoose expert in days, not months. Stop copy/pasting snippets from StackOverflow and become the backend expert your team relies on.

Mastering Mongoose comes with 4 sample apps built to demonstrate the eBook’s lessons. These apps include:

Realtime Websocket Chat

A chat app built with vanilla JS on the frontend. Chat messages are sent in realtime using websockets.

The backend is powered by Express and ws. The app demonstrates how to use the same port for both HTTP and websockets, as well as how to integrate Mongoose with websockets.

React Shopping Cart

A sample music shop built with React. Includes test payment integration with Puppeteer.

The backend is built with Express. This app demonstrates how to manage a shopping cart with Express and Mongoose, including how to check out with Stripe.

Vue Stock Portfolio

A Vue app that calculates the total value of your stock portfolio. Includes server-side rendering and end-to-end tests powered by Puppeteer.

The Express-based backend demonstrates how to handle pre-fetching data for server-side rendering.