- Introduction
- What you will learn
- What you will build
- What Packages you will use
- Install Tools
- VS Code
- Chrome
- Git
- Node.js
- Create Next App
- npx create-next-app
- add @mui library
- Publish to github
- create githb account
- push to github from vs code
- Create Website Layout
- Add header
- Add main
- Add footer
- Connect to Sanity.io
- install sanity
- initialize sanity
- create product model
- insert sample data to product model
- List Products
- add localhost:3000 to the CORS origins in sanity
- fetch products from sanity
- render them in the screen
- Create Product Details Screen
- add [slug].js to product folder
- create component
- get slug from the url
- fetch product from sanity client
- render product image, info
- show add to cart button
- Create React Context
- define Context, Store and reducer
- set darkMode flag
- use it on layout
- Implement Add to cart
- define cart in context
- dispatch add to cart action
- set click event handler for button
- Create Cart Screen
- get cart items from context
- render in the screen
- show cart items in the header menu
- implement add to cart in home page
- Display Cart Badge In Header Menu
- add cart link to header
- show cart items badge in header
- implement add to cart in home page
- Create Login and Register Screen
- create login form
- create register for
- Implement User Register API
- create user model
- create user create route api
- use it in the register screen
- Implement User Login API
- create login api
- use login api in login screen
- implement logout
- Create Shipping Screen
- create shipping component
- get address fields
- implement submit handler
- handle redirect
- Create Payment Screen
- create payment component
- get payment method
- implement submit handler
- Create Place Order Screen
- create place order component
- preview order
- create order model in sanity
- create order on place order click handler
- Create Order Screen
- create order component
- display order information
- Pay Order By PayPal
- generate paypal client id
- create api to return client id
- install react-paypal-js
- use PayPalScriptProvider in index.js
- use usePayPalScriptReducer in Order Screen
- implement loadPaypalScript function
- render paypal button
- implement onApprove payment function
- create pay order api in backend
- Display Order History
- create order history component
- load orders of current user
- render orders in the screen
- Update User Profile
- create profile screen
- create input forms for name, email
- update user info
- Create Search Screen
- create search screen
- implement search filters
- list products
- Publish on Vercel
- create vercel account
- connect it to gitub
- add vercel domain to allow origin in sanity
- publish result
-
Notifications
You must be signed in to change notification settings - Fork 19
basir/sanity-amazona
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published