{"repo":"andrewsolonets/Azon-Shop","free":true,"listed":false,"github":"https://github.com/andrewsolonets/Azon-Shop","clone":"git clone https://github.com/andrewsolonets/Azon-Shop.git","description":"T3-stack E-commerce website with Drizzle ORM, rating system, persistent cart, discounts, algolia search, optimistic updates (React Query), in stock indicator, infinite scroll and order tracking. E2E Cypress tests included","language":"TypeScript","stars":85,"topics":["nextjs","optimistic-updates","prisma","react","reactquery","sql","t3-stack","tailwindcss","trpc","ecommerce"],"license":null,"category":"ecommerce","readme_excerpt":"Azon Shop E-commerce website built with the modern t3-stack (typescript, drizzle, trpc, next.js app router) (see v1 for older t3-stack implementation w/ prisma) Features - Fully functioning, persistent Cart - Infinite scroll - Rating System - User profile with order history - Checkout with Stripe - Custom db with orders connected to Stripe - Authentication w/ Clerk - Algolia Autocomplete search - Product discounts and price history - E2E tests w/ Cypress Migration from pages to app router The current version was migrated to use app router along drizzle ORM and clerk auth. v1 branch is saved as a reference, built with pages router, prisma and next auth. Environment Variables To run this project, you will need to add the environment variables from .env.example to your .env file Run Locally Clone the project Go to the project directory Install dependencies Connect to your db, update drizzle integration if not using PostgreSQL Add all the vars to the .env Set up Algolia 1. Go to algoliaSeed.ts and change \"azon1\" to your index name: 2. Go to Search.tsx and change: - sourceId: \"AzonShop\" to your Algolia application name. - indexName: \"azon1\" to your index. Seeding the Database Once you've completed the setup for Algolia and added the necessary environment variables, proceed with seeding your database with products. Seed the Database: Run the following commands in your terminal: Checking the Changes After the seeding process completes: - Algolia Dashboard: Visit the Algolia dashboar","default_branch":null,"files":null,"tree":[],"storefront":"/r/andrewsolonets","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andrewsolonets/Azon-Shop/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}