Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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

eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781788835534
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 29, 2018
Length: 470 pages
Edition : 1st
Language : English
ISBN-13 : 9781788835534
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 $5 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 146.97
Full-Stack Web Development with Vue.js and Node
$48.99
Full-Stack React Projects
$48.99
React Cookbook
$48.99
Total $ 146.97 Stars icon

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.