Building Next.js Ecommerce Store with TypeScript, Tailwindcss, headlessui, and Shopify CMS.

Building Next.js Ecommerce Store with TypeScript, Tailwindcss, headlessui, and Shopify CMS.

18.021 Lượt nghe
Building Next.js Ecommerce Store with TypeScript, Tailwindcss, headlessui, and Shopify CMS.
🎉 Welcome to the comprehensive Ecommerce store Project! 🚀 In this comprehensive tutorial, you'll learn how to build a high-performance, server-rendered Next.js App Router ecommerce application using Shopify as a headless CMS! . This template uses React Server Components, Server Actions, Suspense, useOptimistic, and more. I'll guide you step by step through the process of setting up your storefront, integrating Shopify's powerful backend, and styling the app with Headless UI components and Tailwind CSS. 🚀 What You'll Learn: 🏪 How to set up a Next.js project for ecommerce 🔗 Connecting Shopify as a headless CMS for product management 🪷 Using Headless UI to create dynamic and accessible UI components 🌹 Styling the store with Tailwind CSS for a modern, responsive design 🎣 Fetching and displaying Shopify products, categories, and cart functionality 💼 Best practices for building fast, SEO-friendly ecommerce stores Whether you're new to headless ecommerce or looking to enhance your Next.js skills, this tutorial will equip you with the knowledge and tools to create a sleek, performant online store. Perfect for developers of all skill levels! Don’t forget to like, comment, and subscribe for more tutorials and project showcases! ✨ Demo: https://demo-next-store.vercel.app/ Full Code: https://github.com/w3tsadev/demo-next-store More Resources 👇🏻 Timestamps: 00:00 - Introduction 00:30 - Project Demo 03:24 - Shopify Partner Program 05:03 - Shopify Store Creation 07:07 - Shopify CMS Admin Dashboard 08:14 - Set Up Shopify as Headless CMS 12:14 - Shopify Store Admin Overview 15:56 - Uploading dummy products via CSV 21:33 - Build Start 23:00 - Default Next App 23:15 - Installing Dependencies(HeadlessUI, Tailwind.css, tailwindcss-typography, Prettier, tailwindcss-animate, tailwindcss-container-queries) 24:14 - tailwind.config.ts 30:54 - Folder Structure 32:38 - Components(navbar, footer, etc...) 34:52 - Shopify Logic (getMenu, getProduct, etc...) 42:17 - Types 43:05 - Shopify Fetch Function 52:31 - Shopify GraphQL Queries 56:02 - Best way to use .env files in Typescript Project 1:04 - Shopify GraphQl API endpoint 1:15:13 - Adding Collection in Shopify Admin 1:18:25 - NavBar JSX 1:28:36 - Mobile Menu 1:46:50 - Search.tsx 2:03:12 - Logo 2:16:48 - Footer.tsx 2:28:51 - Search Page with Filterlist and Collections 4:18:19 - Suspense React Component 4:20:52 - Dynamic Collection Page 4:29:06 - Search/Collection Page Bug Fix 4:33:22 - Product Page 4:50:39 - Product Context 5:17:37 - Add to Cart 5:21:09 - Cart Context 5:32:39 - Sever Action 6:25:17 - Cart modal 6:25:17 - Cart provider with useOptimistic 7:01:49 - Product page Bug fix 7:08:03 - Deployment 7:12:25 - Webhooks 7:14:27 - Revalidate Api for webhooks 7:21:49 - Other Pages 7:28:56 - Metadata 7:33:39 - Error.tsx 7:35:15 - SEO with Robots.ts and Sitemap.ts 7:37:32 - Conclusion 🔗 Resources: Next.js Documentation: https://nextjs.org/docs Shopify API: https://www.shopify.com/partners Shopify Headless theme: https://github.com/instantcommerce/shopify-headless-theme Headless UI: https://headlessui.com/ Tailwind CSS: https://tailwindcss.com/ Tailwind-typography: https://github.com/tailwindlabs/tailwindcss-typography Tailwindcss-animate: https://github.com/jamiebuilds/tailwindcss-animate Tailwindcss-container-queries: https://github.com/tailwindlabs/tailwindcss-container-queries UUID Generator: https://www.uuidgenerator.net/ OG Playground: https://og-playground.vercel.app/ #NextJS #Shopify #HeadlessCMS #TailwindCSS #HeadlessUI #Ecommerce #WebDevelopment #Frontend #ReactJS #javascript Thanks for watching, and happy coding! 🚀 Reach out to me: Twitter: https://twitter.com/w3tsadev 🎥 Other Videos to Watch: Comprehensive Next.js Full Tutorial - https://www.youtube.com/playlist?list=PLI2MfgGPNO71XkjxnkLxLRDHMVBWkG5M3 Building Next.js Fullstack Blog with TypeScript, Shadcn/ui, MDX, Prisma and Vercel Postgres - https://www.youtube.com/watch?v=htgktwXYw6g