
Full-Stack React Projects
Learn MERN stack development by building modern web apps using MongoDB, Express, React, and Node.js, 2nd Edition
- 716 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Full-Stack React Projects
Learn MERN stack development by building modern web apps using MongoDB, Express, React, and Node.js, 2nd Edition
About this book
A practical, project-based guide to full-stack JavaScript web development combining the power of React with industry-tested server-side technologies
Key Features
- Build your career as a full-stack developer with this practical guide
- Understand how the different aspects of a MERN application come together through a series of practical projects
- Master the MERN stack by building robust social media, E-commerce store, and web-based VR game apps
Book Description
Facebook's React combined with industry-tested, server-side technologies, such as Node, Express, and MongoDB, enables you to develop and deploy robust real-world full-stack web apps. This updated second edition focuses on the latest versions and conventions of the technologies in this stack, along with their new features such as Hooks in React and async/await in JavaScript. The book also explores advanced topics such as implementing real-time bidding, a web-based classroom app, and data visualization in an expense tracking app.Full-Stack React Projects will take you through the process of preparing the development environment for MERN stack-based web development, creating a basic skeleton app, and extending it to build six different web apps. You'll build apps for social media, classrooms, media streaming, online marketplaces with real-time bidding, and web-based games with virtual reality features. Throughout the book, you'll learn how MERN stack web development works, extend its capabilities for complex features, and gain actionable insights into creating MERN-based apps, along with exploring industry best practices to meet the ever-increasing demands of the real world.By the end of this React book, you'll be able to build production-ready MERN full-stack apps using advanced tools and techniques in modern web development.
What you will learn
- Extend a basic MERN-based application to build a variety of applications
- Add real-time communication capabilities with Socket.IO
- Implement data visualization features for React applications using Victory
- Develop media streaming applications using MongoDB GridFS
- Improve SEO for your MERN apps by implementing server-side rendering with data
- Implement user authentication and authorization using JSON web tokens
- Set up and use React 360 to develop user interfaces with VR capabilities
- Make your MERN stack applications reliable and scalable with industry best practices
Who this book is for
This is one of the most useful web development books for JavaScript developers who may have worked with React but have minimal experience in full-stack development with Node, Express, and MongoDB.
]]>
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Building a Web-Based Classroom Application
- Introducing MERN Classroom
- Adding an educator role to users
- Adding courses to the classroom
- Updating courses with lessons
- Publishing courses
- Enrolling in courses
- Tracking progress and enrollment stats
Introducing MERN Classroom


Updating the user with an educator role


Adding a role to the user model
educator: {
type: Boolean,
default: false
} ...
l
token,
user: {
_id: user._id,
name: user.name,
email: user.email,
educator: user.educator
}
})
...
} Updating the EditProfile view
<Typography variant="subtitle1" className={classes.subheading}>
I am an Educator
</Typography>
<FormControlLabel
control={
<Switch classes={{
checked: classes.checked,
bar: classes.bar,
}}
checked={values.educator}
onChange={handleCheck}
/>}
label={values.educator? 'Yes' : 'No'}
/> const handleCheck = (event, checked) => {
setValues({...values, 'educator': checked})
} clickSubmit = () => {
const jwt = auth.isAuthenticated()
const user = {
name: this.state.name || undefined,
email: this.state.email || undefined,
password: this.state.password || undefined,
educator: values.educator || undefined
}
update({
userId: this.match.params.userId
}, {
t: jwt.token
}, user).then((data) => {
if (data.error) {
this.setState({error: data.error})
} else {
auth.updateUser(data, ()=> {
setValues({...val...Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Getting Started with MERN
- Unleashing React Applications with MERN
- Preparing the Development Environment
- Building MERN from the Ground Up
- Building a Backend with MongoDB, Express, and Node
- Adding a React Frontend to Complete MERN
- Growing the Skeleton into a Social Media Application
- Developing Web Applications with MERN
- Building a Web-Based Classroom Application
- Exercising MERN Skills with an Online Marketplace
- Extending the Marketplace for Orders and Payments
- Adding Real-Time Bidding Capabilities to the Marketplace
- Advancing to Complex MERN Applications
- Integrating Data Visualization with an Expense Tracking Application
- Building a Media Streaming Application
- Customizing the Media Player and Improving SEO
- Developing a Web-Based VR Game
- Making the VR Game Dynamic using MERN
- Going Forward with MERN
- Following Best Practices and Developing MERN Further
- Other Books You May Enjoy