Mô tả

SEPTEMBER 2023 UPDATE: This course uses the Next JS pages directory but a brand new section has been added to cover using Next JS 13.4 and the app directory, specifically converting the pages directory over to the app directory.

Do you want to improve your React JS skills and increase your value as a front-end developer?

Level-up your React skillset by learning Next.js with a Headless WordPress backend! The site we'll be building in Next JS uses React JS and GraphQL to generate and build static pages from a given dataset. This course will look at setting up Wordpress as a headless CMS while using NextJS to generate a blazing-fast server-rendered React website from WordPress data, such as custom post types, pages, menus, media, advanced custom fields, (and more!) using GraphQL to query that data.

That's right, we can actually query WordPress data using GraphQL!

We'll be creating an estate agent property website in this course, looking at initial setup and development of Next JS and WordPress locally, mapping Gutenberg blocks to React components, creating our own custom Gutenberg blocks, styling these components with Tailwind CSS and querying WordPress and Gutenberg data with GraphQL to automatically generate our static pages.

We'll look at how we can query WordPress data with GraphQL using the GraphiQL browser tool. We'll get our hands into a little bit of WordPress code as well, but not too much - the main focus here is Next JS. Once we're familiar and comfortable developing with NextJS and Wordpress, we'll progress onto setting up and deploying a live website using Vercel that re-builds our static web pages every time we update content in our WordPress backend, using webhooks.

It's recommended you have rudimentary knowledge of React. We'll be covering everything else from Next.js, WordPress, GraphQL, and Tailwind CSS!

Speed past the competition!

Next.js builds the fastest possible website. Instead of waiting to generate pages when requested, we'll be using the static generation function within Next JS to pre-build pages and lift them into a global cloud of servers (we'll be using Vercel for this) - ready to be delivered instantly to your users wherever they are.

  • No waiting for API responses

  • No waiting to render components based on requested data

  • No loading spinners!

  • No waiting for a server to compile a page to serve to the browser - these pages are already pre-compiled and ready to serve instantly to your users!


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

Increase your value and improve your knowledge as a front-end / React JS developer

Learn Next JS

Create a static, server-compiled, content-driven website using Next JS (with React JS & GraphQL)

Learn how to use GraphQL and GraphiQL to query data stored in Wordpress

Set up Wordpress as a backend to build content, then render the content as pages with React JS & GraphQL

Deploy your Next JS static website and rebuild whenever content changes using Vercel

Learn how to style Next JS apps with Tailwind CSS

Learn how to create custom Gutenberg blocks with ACF pro

Use React Context & React Hooks

Create custom React hooks

Create api endpoints with Next JS

Yêu cầu

  • Have a basic understanding of React JS

Nội dung khoá học

8 sections

Introduction & Setup

5 lectures
Important: Read this before you begin this course! (Github repo etc)
01:00
Course intro & site demo
07:21
Udemy ratings & reviews
00:38
Set up WordPress locally & plugin explanation
08:36
Set up Next JS + first query for WordPress data with GraphQL
11:04

Building the first pages

9 lectures
Create homepage + query for gutenberg blocks
06:22
Create the BlockRenderer component & clean block data
12:19
Cover component, style with Tailwind CSS, & render images with Next JS Image
08:29
Create a WordPress child theme & modify theme files
06:12
Create heading component, util functions, extend tailwind, and inner block
15:49
Create additional pages & child pages in WordPress & dynamic routes in Next JS
12:33
Query for page data using GraphQL from page components & getStaticProps
08:17
Create Paragraph component & further extend WordPress theme
11:29
Finish Paragraph component & mapping anchor tags / internal links
04:16

Creating the main menu

8 lectures
Create the Main Menu options page with ACF (part 1)
09:50
Create the Main Menu options page with ACF (part 2)
08:50
Query and clean menu data in Next JS
06:50
Create the Menu component in Next JS
06:30
Finish the Menu component
12:50
Implement the CTA button in Main Menu
06:56
Create ButtonLink component & using the @apply Tailwind CSS directive
04:50
Refactor Page components
08:35

Advanced Gutenberg blocks

6 lectures
Create the CTA custom block with ACF blocks
13:03
Assign fields to the CTA block and create block preview
10:29
Create the CTA component in Next JS
05:39
Implement columns with Gutenberg blocks
09:29
Rendering Column components within Columns + handling Image blocks in Next JS
06:09
Reusable blocks
06:38

Property pages

12 lectures
Create custom fields for the property pages
06:21
Create the property pages in Next JS
04:16
Implement post feaured image as Cover background & post title block
03:37
Create the property search custom block
05:42
Create API route for property search
07:17
Rendering property search results
12:53
Create pagination UI
09:24
Handle pagination in search API
07:43
Create the search filters UI
05:43
Query preview & add local state for search filters
08:51
Implement filters in search API
11:06
FIX: URLs when searching
05:57

Extra

13 lectures
Create formspree form custom gutenberg block
08:44
Create formspree form component in Next JS
06:05
Create property features gutenberg block
15:44
Create property features component in Next JS
14:14
SEO
05:12
Implement the image gallery gutenberg block
06:28
Create the Gallery component in Next JS
08:09
Add background and text color to Column block in WordPress
05:26
Refactor Column component in Next JS to accept background and text color
03:32
Create tick item custom gutenberg block
08:41
Render tick item block in Next (also covering inner blocks within custom blocks)
04:50
Implement background color for a single column
02:16
Push code to github
01:11

Upgrading to Next 13.4 and the app directory

11 lectures
Prepare the project and update dependencies
04:29
Start implementing the app directory
05:42
Query the homepage, add client components, and fix Link components
11:51
Fix tailwind css and google fonts
06:58
Move the main menu to the layout file
05:15
Implement remaining pages with dynamic routes
06:06
Use generateMetadata for SEO
08:50
Update next/router to next/navigation in PropertySearch
04:17
Implement the search api route handler
08:46
Fix images and fontawesome icons
07:31
Next cache
09:55

Deploy to production

4 lectures
Deploy WordPress & Next JS app live
07:17
Automatically rebuild when data changes in WordPress (pages directory)
03:57
Clear cache when data changes in WordPress (app directory)
01:34
BONUS!
00:56

Đá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.