Learn to Build A React WooCommerce Theme With REST API And TailwindCSS
What you will learn
Building Nextjs Application
Decoupled Application With WordPress And WooCommerce
Building A Headless CMS
WooCommerce REST API
Setting Up And Using TailwindCSS
Description
In this course, you will learn
- How to create a react application with the next.js framework.
- The backend will be in WordPress using WooCommerce Plugin.
- The data will be fetched using REST API.
- For CSS we will use TailwindCSS and we will also learn how to customize it as per our needs.
- We will build:
- Header
- Footer
- Product Page
- Add To Cart.
- All the data will be dynamic fetched from WordPress.
- Pages will also be cached and fresh data will also be updated on a regular basis. So that the data is never stale.
- We will display all the products with their images, price, and discounts with add to cart feature.
- We will take advantage of Next.js Image optimization, and Incremental Static Regeneration.
- Incremental Static (Re)generation and automatic creation of New Static post pages without having to re-build next.js the application.
- Gutenberg styles support
- REST API endpoints.
WordPress Rest API is one of the many great features WordPress offers. It enables developers to create fascinating plugins and themes and allows them to power third-party applications with WordPress CMS.
The content management system is also developed to manage the web siteβs content in modern web applications. This can add an extra workload for the developers. With so many possibilities that Rest API offers, one can also think of using WordPress with React as a headless CMS for their JavaScript-based web application(s).
English
language
Content
Introduction
Setup Nextjs Project
Setup Tailwind CSS with SASS
Header and Footer
Header Footer REST API
Using getStaticProps and axios to Fetch Data from WordPress
Add Dynamic Site Title, Tagline, Logo
Add Header Menus
Add SVG Icons
Add Footer Widgets
Footer Menus and Social Icons
WooCommerce Products
Setup WooCommerce Auth Key , Fetch WooCommerce Products
Display Products: Title
Create a Next.js Image Component
Adding Product Image
Adding Product Price
Fixing dangerouslySetInnerHTML Warnings