MERN Quick Start Guide : Build web applications with MongoDB, Express.js, React, and Node.

The MERN stack is a collection of great tools - MongoDB, ExpressJS, React, and Node - that provide a strong base for a developer to build easily maintainable web applications. With each of them a JavaScript or JavaScript-based technology, the shared programming language means it takes less time to d...

Full description

Saved in:
Bibliographic Details
Main Author: Wilson, Eddy
Format: eBook
Language:English
Published: Birmingham : Packt Publishing, 2018.
Subjects:
Online Access:Click for online access
Table of Contents:
  • Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Introduction to the MERN Stack; Technical requirements; Introduction; The MVC architectural pattern; Installing and configuring MongoDB; Getting ready; How to do it ... ; There's more ... ; Installing Node.js; Getting ready; How to do it ... ; Installing npm packages; Getting ready; How to do it ... ; How it works ... ; Chapter 2: Building a Web server with ExpressJS; Technical requirements; Introduction; Routing in ExpressJS; Getting ready; How to do it ... ; Route methods; Route handlers.
  • Chainable route methodsThere's more ... ; Modular route handlers; Getting ready; How to do it ... ; Writing middleware functions; Getting ready; How to do it ... ; How it works ... ; Writing configurable middleware functions; Getting ready; How to do it ... ; Let's test it ... ; There's more ... ; Writing router-level middleware functions; Getting ready; How to do it ... ; There's more ... ; How it works ... ; Writing error-handler middleware functions; Getting ready; How to do it ... ; Using ExpressJS' built-in middleware function for serving static assets; Getting ready; How to do it ... ; How it works ...
  • There's more ... Parsing the HTTP request body; Getting ready; How to do it ... ; How it works ... ; Compressing HTTP responses; Getting ready; How to do it ... ; How it works ... ; Using an HTTP request logger; Getting ready; How to do it ... ; Managing and creating virtual domains; Getting ready; How to do it ... ; There's more ... ; Securing an ExpressJS web application with Helmet; Getting ready; How to do it ... ; How it works ... ; Using template engines; Getting ready; How to do it ... ; Debugging your ExpressJS web application; Getting ready; How to do it ... ; How it works ... ; There's more ...
  • Chapter 3: Building a RESTful APITechnical requirements; Introduction; CRUD operations using ExpressJS' route methods; Getting ready; How to do it ... ; Let's test it ... ; How it works ... ; CRUD operations with Mongoose; Getting ready; How to do it ... ; See also; Using Mongoose query builders; Getting ready; How to do it ... ; See also; Defining document instance methods; Getting ready; How to do it ... ; There's more ... ; See also; Defining static model methods; Getting ready; How to do it ... ; There's more ... ; See also; Writing middleware functions for Mongoose; Getting ready; How to do it ...
  • Document middleware functionsQuery middleware functions; Model middleware functions; There's more ... ; See also; Writing custom validators for Mongoose's schemas; Getting ready; How to do it ... ; See also; Building a RESTful API to manage users with ExpressJS and Mongoose; Getting ready; How to do it ... ; Let's test it ... ; How it works ... ; See also; Chapter 4: Real-Time Communication with Socket. IO and ExpressJS; Technical requirements; Introduction; Understanding Node.js events; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Understanding Socket. IO events.