This repository contains the source code for an Apple based ecommerce web application built with Next.js, Sanity.io, and NextAuth.js. The app allows users to browse apple products, add them to the cart, and proceed to checkout. It also includes authentication using Google provider through NextAuth.js.
-
Frontend:
- Next.js: React framework for building server-side rendered React applications.
- Tailwind CSS: Utility-first CSS framework for styling.
- Redux: State management
-
Backend:
- Sanity.io: Headless CMS for managing product data.
-
Authentication:
- NextAuth.js: Authentication library for Next.js applications, supporting various authentication providers including Google.
- Browse products: Users can view a list of products with details.
- Add to cart: Users can add products to their shopping cart.
- Authentication: Users can sign up/sign in using Google provider.
- Checkout: Users can proceed to checkout and complete their purchase using stripe for payment.
To get a local copy of the project up and running, follow these steps:
- Clone this repository.
- Install dependencies by running
npm install
oryarn install
. - Set up environment variables for Sanity.io and NextAuth.js.
- Run the development server with
npm run dev
oryarn dev
. - Open http://localhost:3000 to view the app in your browser.


