Next Sanity Demo Store is an example ecommerce store website for educational purposes only. It is built on Next.js 13 with the app router. Pages and components are server side rendered wherever possible. It is coupled with Sanity headless CMS to handle all data. Nextauth with custom Sanity adapter is used for authentication flow. Paypal integration for payment processing, with server side verification for orders and payments in Next API routes. Global state is managed by Zustand and localstorage is used to store insensitive data.
Live site: https://nsds.vercel.app
- Fully intergrated with Sanity CMS
- Paypal payment integration
- Full text search on product's name and description
- User account page with order history and user profile
- Cached shopping basket locally and stored in the database
- Protected pages and routes with middleware
- Statically generated category pages
- Statically generated individual product pages