Book description
Build web applications with MongoDB, ExpressJS, React, and Node
About This Book- Build applications with the MERN stack
- Work with each component of the MERN stack
- Become confident with MERN and ready for more!
The book is for JavaScript developers who want to get stated with the MERN Stack.
What You Will Learn- Get started with the MERN stack
- Install Node.js and configure MongoDB
- Build RESTful APIs with Express.js and Mongoose
- Build real-time applications with Socket.IO
- Manage synchronous and asynchronous data flows with Redux
- Build web applications with React
The MERN stack is a collection of great tools - MongoDB, Express.js, 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, having a shared programming language means it takes less time to develop web applications.
This book focuses on providing key tasks that can help you get started, learn, understand, and build full-stack web applications. It walks you through the process of installing all the requirements and project setup to build client-side React web applications, managing synchronous and asynchronous data flows with Redux, and building real-time web applications with Socket.IO, RESTful APIs, and other concepts. This book gives you practical and clear hands-on experience so you can begin building a full-stack MERN web application.
Quick Start Guides are focused, shorter titles that provide a faster paced introduction to a technology. They are for people who don't need all the detail at this point in their learning curve. The presentation has been streamlined to concentrate on the things you really need to know.
Style and approachThis guide shows you how to use your JavaScript knowledge to build web applications that use the MERN stack in both client-side and in server-side environments.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Introduction to the MERN Stack
-
Building a Web server with ExpressJS
- Technical requirements
- Introduction
- Routing in ExpressJS
- Modular route handlers
- Writing middleware functions
- Writing configurable middleware functions
- Writing router-level middleware functions
- Writing error-handler middleware functions
- Using ExpressJS' built-in middleware function for serving static assets
- Parsing the HTTP request body
- Compressing HTTP responses
- Using an HTTP request logger
- Managing and creating virtual domains
- Securing an ExpressJS web application with Helmet
- Using template engines
- Debugging your ExpressJS web application
-
Building a RESTful API
- Technical requirements
- Introduction
- CRUD operations using ExpressJS' route methods
- CRUD operations with Mongoose
- Using Mongoose query builders
- Defining document instance methods
- Defining static model methods
- Writing middleware functions for Mongoose
- Writing custom validators for Mongoose's schemas
- Building a RESTful API to manage users with ExpressJS and Mongoose
- Real-Time Communication with Socket.IO and ExpressJS
-
Managing State with Redux
- Technical requirements
- Introduction
- Defining actions and action creators
- Defining reducer functions
- Creating a Redux store
- Binding action creators to the dispatch method
- Splitting and combining reducers
- Writing Redux store enhancers
- Time traveling with Redux
- Understanding Redux middleware
- Dealing with asynchronous data flow
-
Building Web Applications with React
- Technical requirements
- Introduction
- Understanding React elements and React components
- Composing components
- Stateful components and life cycle methods
- Working with React.PureComponent
- React event handlers
- Conditional rendering of components
- Rendering lists with React
- Working with forms and inputs in React
- Understanding refs and how to use them
- Understanding React portals
- Catching errors with error boundary components
- Type checking properties with PropTypes
- Other Books You May Enjoy
Product information
- Title: MERN Quick Start Guide
- Author(s):
- Release date: May 2018
- Publisher(s): Packt Publishing
- ISBN: 9781787281080
You might also like
book
Beginning Server-Side Application Development with Angular
Discover how to rapidly prototype SEO-friendly web applications with Angular Universal About This Book Rapidly build …
book
Building React Apps with Server-Side Rendering: Use React, Redux, and Next to Build Full Server-Side Rendering Applications
Leverage the benefits of both client-side and server-side rendering to get the most out of your …
book
Node.js 8 the Right Way
Node.js is the platform of choice for creating modern web services. This fast-paced book gets you …
book
Beginning Python Visualization
We are visual animals. But before we can see the world in its true splendor, our …