Overview
Azon Shop is an ecommerce website built using the T3 Stack, which includes TypeScript, Prisma, trpc, and Next.js. This fully functioning website offers a range of features including a persistent cart, infinite scroll, a rating system, user profiles with order history, and a checkout process with Stripe integration.
Features
- Fully functioning, persistent Cart: Users can add products to their cart and the cart will persist across different pages.
- Infinite scroll: The website implements infinite scroll, allowing users to continuously scroll and load more products.
- Rating System: Users can provide ratings and reviews for products.
- User profile with order history: Each user has their own profile with a history of their previous orders.
- Checkout with Stripe: The website integrates with Stripe for secure payment processing during checkout.
- Custom db with orders connected to Stripe: Custom database setup with orders connected to Stripe for seamless order management.
- Authentication: Users can create accounts and log in to access personalized features.
- Algolia Autocomplete search: The website utilizes Algolia’s autocomplete search functionality for quick and efficient product searching.
Installation
To install and run the Azon Shop project, follow these steps:
- Clone the project to your local machine.
- Navigate to the project directory.
- Install the necessary dependencies.
- Connect to your database. If it’s not MySQL, make sure to modify the
schema.prisma
file accordingly. - Add the required environment variables to your
.env
file. These include:DATABASE_URL
,NEXTAUTH_SECRET
,NEXTAUTH_URL
,GOOGLE_CLIENT_ID
,GOOGLE_CLIENT_SECRET
,GITHUB_ID
,GITHUB_SECRET
,NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
,STRIPE_SECRET_KEY
, andSTRIPE_WEBHOOK_SECRET
. - Start the server to run the Azon Shop.
Summary
Azon Shop is a feature-rich ecommerce website built using the T3 Stack. It offers essential ecommerce functionality such as a persistent cart, user profiles, ratings, and a seamless checkout process with Stripe. The website is built with modern technologies like TypeScript, Prisma, trpc, and Next.js. With its intuitive features and efficient design, Azon Shop provides a great shopping experience for users.