- React.js, Next.js, Sanity, Stripe
- Run server by 'npm run dev' in
/ecommerce/
- Run Sanity by 'sanity start' in
/ecommerce/sanity_ecommerce
- Products: Title, Rating, Details, Price, and Quanitity
- Have option to Add to Cart and Buy Now
- You may also like
- Banner: Summer Sale Item
- Footer: Summer Sale Item
- Cart: List of selected items, Able to delete unwanted items, Subtotal, and Quantitiy
- Payment Option: using Stripe (success page for buying products)
- Cart, Product, Navbar, Footer, FooterBanner, and HeroBanner
- Used StateContext to keep track of price, quanitity, and cart items
- File-based Routing and Data Fetching using Next.js
- Used methods:
getStaticProps
,getStaticPaths
, andgetServerSideProps
- Created Schema for product and banner
- Hooked up Sanity using Sanity Client
- Payments: Stored through Stripes Dashboard under Payments with list of items and prices
- Shipping Rates: Free Shipping ($0) and Fast Shipping ($20)
- Entire Checkout Process: https://stripe.com/docs/checkout/quickstart?client=next using Prebuilt Checkout Page in Next.js