Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Full-Stack React Projects
Full-Stack React Projects

Full-Stack React Projects: Modern web development using React 16, Node, Express, and MongoDB

Arrow left icon
Profile Icon Shama Hoque
Arrow right icon
₱579.99 ₱2000.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.9 (10 Ratings)
eBook May 2018 470 pages 1st Edition
eBook
₱579.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial
Arrow left icon
Profile Icon Shama Hoque
Arrow right icon
₱579.99 ₱2000.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.9 (10 Ratings)
eBook May 2018 470 pages 1st Edition
eBook
₱579.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial
eBook
₱579.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Full-Stack React Projects

Preparing the Development Environment

Before building applications with the MERN stack, we first need to prepare the development environment with each technology, and also with tools to aid development and debugging. This chapter guides you through understanding workspace options, essential development tools, how to set up the MERN technologies in your workspace, and the steps to check this setup with actual code.

We are going to cover the following topics:

  • Workspace options
  • Code editors
  • Chrome Developer Tools
  • Git setup
  • MongoDB setup
  • Node setup
  • npm modules to complete the MERN stack
  • Code to check MERN setup

Selecting development tools

There are plenty of options available when it comes to selecting basic development tools such as text editors or IDEs, version control software, and even the development workspace itself. In this section, we go over options and recommendations relevant to web development with MERN so you can make informed decisions when selecting these tools based on individual preferences.

Workspace options

Developing on a local machine is the most common practice among programmers, but with the advent of good cloud development services, such as Cloud9 (https://aws.amazon.com/cloud9/?origin=c9io), it's now possible to use either or both. You can set up your local workspace with MERN technologies, and this...

Setting up MERN stack technologies

MERN stack technologies are being developed and upgraded as this book is being written, so for the work demonstrated throughout this book, we use the latest stable versions at the time of writing. Installation guidelines for most of these technologies are dependent on the system environment of your workspaces, so this section points to all relevant installation resources, and also acts as a guide for setting up a fully functioning MERN stack.

MongoDB

MongoDB must be set up and running in the development environment before any database features are added to MERN applications. At the time of writing, the current stable version of MongoDB is 3.6.3, and this version of the MongoDB Community Edition...

Checking your development setup

In this section, we will go through the development workflow and write code step-by-step to ensure the environment is correctly set up to start developing and running MERN applications.

We will generate these project files in the following folder structure to run a simple setup project:

| mern-simplesetup/
| -- client/
| --- HelloWorld.js
| --- main.js
| -- server/
| --- devBundle.js
| --- server.js
| -- .babelrc
| -- nodemon.json
| -- package.json
| -- template.js
| -- webpack.config.client.js
| -- webpack.config.client.production.js
| -- webpack.config.server.js
The code discussed in this section is available on GitHub in the repository at: github.com/shamahoque/mern-simplesetup. You can clone this code and run it as you go through the code explanations in the rest of this chapter. 
...

Summary

In this chapter, we discussed development tool options and how to install MERN technologies, and then we wrote code to check whether the development environment is set up correctly.

We began by looking at the recommended workspace, IDE, version control software, and browser options suitable for web development. You can select from these options based on your preferences as a developer.

Next, we set up the MERN stack technologies by first installing MongoDB, Node, and npm, and then adding the remaining required libraries using npm.

Before moving on to writing code to check this setup, we configured Webpack and Babel to compile and bundle code during development, and to build production ready code. We learned that it is necessary to compile the ES6 and JSX code that is used for developing a MERN application before opening the application on browsers.

Additionally, we made...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • •Create dynamic web applications with the MERN stack
  • •Leverage the power of React in building interactive and complex user interfaces
  • •Unlock the potential of Node, Express, and MongoDB to build modern full-stack applications

Description

The benefits of using a full JavaScript stack for web development are undeniable, especially when robust and widely adopted technologies such as React, Node, and Express and are available. Combining the power of React with industry-tested, server-side technologies, such as Node, Express, and MongoDB, creates a diverse array of possibilities when developing real-world web applications. This book guides you through preparing the development environment for MERN stack-based web development, to creating a basic skeleton application and extending it to build four different web applications. These applications include a social media, an online marketplace, a media streaming, and a web-based game application with virtual reality features. While learning to set up the stack and developing a diverse range of applications with this book, you will grasp the inner workings of the MERN stack, extend its capabilities for complex features, and gain actionable knowledge of how to prepare MERN-based applications to meet the growing demands of real-world web applications.

Who is this book for?

Full-Stack React Web Development Projects is for JavaScript developers who have some experience with React, but no previous experience with full-stack development involving Node, Express, and MongoDB, and who want practical guidelines to start building different types of real-world web applications with this stack.

What you will learn

  • •Set up your development environment and develop a MERN application
  • •Implement user authentication and authorization using JSON Web Tokens
  • •Build a social media application by extending the basic MERN application
  • •Create an online marketplace application with shopping cart and Stripe payments
  • •Develop a media streaming application using MongoDB GridFS
  • •Implement server-side rendering with data to improve SEO
  • •Set up and use React 360 to develop user interfaces with VR capabilities
  • •Learn industry best practices to make MERN stack applications reliable and scalable

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 29, 2018
Length: 470 pages
Edition : 1st
Language : English
ISBN-13 : 9781788832946
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 29, 2018
Length: 470 pages
Edition : 1st
Language : English
ISBN-13 : 9781788832946
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 7,502.97
Full-Stack Web Development with Vue.js and Node
₱2500.99
Full-Stack React Projects
₱2500.99
React Cookbook
₱2500.99
Total 7,502.97 Stars icon
Banner background image

Table of Contents

13 Chapters
Unleashing React Applications with MERN Chevron down icon Chevron up icon
Preparing the Development Environment Chevron down icon Chevron up icon
Building a Backend with MongoDB, Express, and Node Chevron down icon Chevron up icon
Adding a React Frontend to Complete MERN Chevron down icon Chevron up icon
Starting with a Simple Social Media Application Chevron down icon Chevron up icon
Exercising New MERN Skills with an Online Marketplace Chevron down icon Chevron up icon
Extending the Marketplace for Orders and Payments Chevron down icon Chevron up icon
Building a Media Streaming Application Chevron down icon Chevron up icon
Customizing the Media Player and Improving SEO Chevron down icon Chevron up icon
Developing a Web-Based VR Game Chevron down icon Chevron up icon
Making the VR Game Dynamic Using MERN Chevron down icon Chevron up icon
Following Best Practices and Developing MERN Further Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.9
(10 Ratings)
5 star 30%
4 star 20%
3 star 0%
2 star 10%
1 star 40%
Filter icon Filter
Top Reviews

Filter reviews by




Joe Chacon Feb 24, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Thank you for this book.This book has helped me to understand more advanced topics regarding react and server side rendering react.This is a very valuable resource to have in a persons library.
Amazon Verified review Amazon
R Valades Jul 06, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great book for getting started with full-stack React web applications. Frontend and backend implementations are outlined from scratch and the author goes into great length to explain not just how it’s done but also why.Some particular things that stood out for me:- Almost all the aspects of developing a full stack application are covered, including authentication and authorization.- The development flow for each project is easy to follow through the book chapters.- Good use of illustrations, specially the React component hierarchy diagrams that also give an overview of each project.- A hidden gem: Live demos of each project in the corresponding GitHub repositories.Highly recommendable book.
Amazon Verified review Amazon
Asif Mahmud Aug 11, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
For someone who is relatively new in the discipline of Web Development this can be a great book to start with, if you are looking to build your first full-stack JavaScript application. All chapters are composed of several defining parts that maintain a sense of continuity throughout the volume. Additionally, the author has provided the code repositories on GitHub, so you can play around with the code and implement something of your own, if you want.In short, the book starts with the whys for the technology used, and then it gradually dives into setting up the development environment for creating applications. Personally I found this to be a real time-saver, since I didn’t have to jump around the Web to figure out which package to use.Turned out to be great place to get my hands dirty!
Amazon Verified review Amazon
Pat J Ryll Jul 10, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Great book! Nice examples and easy to follow.
Amazon Verified review Amazon
skysongz Apr 22, 2019
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Background: So, I'm in the position of not coming from a CS background, and I've been working on learning the MERN stack to land a junior developer job.I've enjoyed this book so far. I've learned a fair amount while working through some of the projects. I can also understand why a lot of people might be put off by the book. I think without a lot of CS background, just reading this book and not using any other resources would be a bit frustrating, because the book doesn't provide much 'perspective' on code choices and other things. This is okay; it's pretty clear that in a work situation, you won't have the luxury of listening to a commentary on the codebase you're working with. And so, rather than lament the fact that this book isn't going to make you an amazing mern developer on it's own, you should appreciate that it gives you some different and complete projects.My current approach is to use this book, along with Udemy video courses to get a more complete picture of the mern stack. There are many worthwhile resources, and I think the trick is to not put too much weight in any one of them, and use them together to establish a firm foundation.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.