Build ECommerce Website Like Amazon by Next.js
- Introduction
- What you will learn
- What you will build
- What Packages you will use
- Install Tools
- VS Code
- Chrome
- Node.js
- MongoDB
- Create Next App
- npx create-next-app
- add layout component
- add header, main and footer
- Add Styles
- add css to header, main and footer
- Fix SSR Issue on MaterialUI
- add _documents.js
- add code to fix styling issue
- List Products
- add data.js
- add images
- render products
- Add header links
- Add cart and login link
- use next/link and mui/link
- add css classes for header links
- Route Product Details Page
- Make Product cards linkable
- Create /product/[slug] route
- find product based on slug
- Create Product Details Page
- Create 3 columns
- show image in first column
- show product info in second column
- show add to cart action on third column
- add styles
- Add MaterialUI Theme
- create theme
- use theme provider
- add h1 and h2 styles
- set theme colors
- Create Application Context
- define context and reducer
- set darkMode flag
- create store provider
- use it on layout