Mô tả

Note: This course assumes you've got the basics of React, Redux, and Express down.  Check out my course 'Node with React', its the perfect preparation!

Go beyond the basics of React and Redux!  This course will teach you to combine the ultra-popular React v16, Redux, React Router, and Express technologies to build a server-side-rendered web application.

All of my courses are 'learn-by-doing': no boring endless lectures with Powerpoints, only live, interactive coding examples.  In this course we'll build one application that profiles the challenges of server side rendering with React, Redux, React Router, and Express.  By putting each concept into a real app, you'll get a better idea of when to use each unique and powerful feature.

Ever wonder why there are so few courses online that teach server side rendering techniques?  Sure, there are blog posts that show a tiny portion of a server side rendered app, but there are nearly no resources online to give you the full server side rendering experience from start to finish.  This course is the most complete resource online for learning about exactly why server side rendering is so challenging.  You'll learn the biggest hurdles, along with multiple solutions to each major problem, giving you the toolset you need to tackle server side rendering techniques in your own applications.

Here's what we'll learn:

  • Learn the architectural considerations of building a server side rendered app
  • Connect a Webpack-powered front and and backend app together
  • Communicate data from your server to client using Redux initial state to your React application
  • Secure your application from common XSS attacks caused by state rehydration
  • Understand how to route user requests on the front end with React Router and on the backend with Express
  • Handle errors and redirects properly that occur during the server rendering process
  • Authenticate your users with cookie-based authentication during the server rendering phase
  • Understand why JWT's are not appropriate for use in a server rendered app
  • Enhance authentication flows in your app with Google OAuth authentication

I've built the course that I would have wanted to take when I was learning to build server side rendered apps. A course that explains the concepts and how they're implemented in the best order for you to learn and deeply understand them.

Bạn sẽ học được gì

Understand the challenges of Server Side Rendering

Build a server side rendering boilerplate project

Use React, Redux, and React Router to conquer Search Engine Optimization

Master techniques for data loading on the server

Construct server architectures that can easily scale for large apps

Yêu cầu

  • This is not a beginner course. You must be familiar with React, Redux, React Router, and Express

Nội dung khoá học

13 sections

Getting Started

5 lectures
A Few Notes
01:44
Course Resources
00:38
Join Our Community!
00:07
Why Server Side Rendering?
05:28
SSR Overview
06:04

Let's Get Coding!

9 lectures
App Overview
04:06
Server Architecture Approach
08:46
Starter Package.Json File
00:31
Boilerplate Setup
02:48
Express Setup
04:59
The RenderToString Function
05:03
JSX on the Server
10:41
Server Side Webpack
05:04
Breather and Review
02:06

Server Configuration

7 lectures
Rebuilding and Restarting
06:59
Server Side Rendering, Isomorphic Javascript, Universal Javascript
05:52
Client Side JS
04:35
Client Bundles
08:42
The Public Directory
05:31
Why Client.js?
06:52
Client Bootup
05:14

Refactoring for Cleaner Code

4 lectures
Merging Webpack Config
08:26
Single Script Startup
04:45
Ignoring Files with Webpack
06:20
Renderer Helper
04:04

Adding Navigation

6 lectures
Implementing React Router Support
03:04
BrowserRouter vs StaticRouter
05:08
Route Configuration
03:34
HTML Mismatch
04:54
More on Route Configuration
06:18
Routing Tiers
02:56

Integrating Support for Redux

9 lectures
The Users API
05:21
Four Big Challenges
08:28
Browser Store Creation
03:24
Server Store Creation
07:32
FetchUsers Action Creator
03:13
The Users Reducer
03:12
Reducer Imports
02:00
UsersList Component
06:02
Babel Polyfill
03:41

Server Side Data Loading

10 lectures
Detecting Data Load Completion
04:35
Solution #1 for Data Loading
07:05
Solution #2 for Data Loading
04:38
The React Router Config Library
05:57
Updating Route Uses
03:37
The MatchRoutes Function
03:26
LoadData Functions
10:48
Store Dispatch
06:52
Waiting for Data Load Completion
03:13
Breather and Review
04:56

Organization with Page Components

7 lectures
The Page Approach
02:54
Refactoring to Pages
02:08
Refactoring Page Exports
04:45
Client State Rehydration
04:43
More on Client State Rehydration
05:27
Dumping State to Templates
07:46
Mitigating XSS Attacks
08:32

Authentication in a Server Side Rendering World

16 lectures
Authentication Issues
05:04
Authentication via Proxy
04:52
Why Not JWT's?
05:37
Proxy Setup
06:24
Renderer to API Communication
05:06
Axios Instances with Redux Thunk
04:52
Client Axios Instance
04:53
Server Axios Instance
08:14
The Header Component
03:16
Adding an App Component
07:40
Building the Header
02:32
Fetching Auth Status
06:12
Calling FetchCurrentUser
03:33
Connecting the Header
06:12
Header Customization
10:32
Header Styling
05:45

Error Handling

15 lectures
404 Not Found Pages
02:57
Implementing the NotFound Page
02:59
StaticRouter Context
08:58
The Admin Feature
02:09
Admins Action Creator and Reducer
03:30
Admins Route Component
04:32
Testing Admins Route
04:24
Promise.all Failures
06:19
Error Handling Solution #1
06:16
Error Handling Solution #2
06:31
Error Handling Solution #3
07:54
The Require Auth Component
04:01
Implementing Require Auth
08:57
Require Auth in Use
04:56
Handling Redirects
04:12

Adding Better SEO Support

5 lectures
Meta Tags
04:15
Setting Tags with Helmet
06:12
React Helmet in Practice
06:42
Dynamic Title Tags
05:30
RenderToString vs RenderToNodeStream
14:08

Wrapup

1 lectures
Next Steps and Wrapup
02:29

Extras

1 lectures
Bonus!
00:36

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.