https://github.com/amjustgettingstarted/ai-x-car-
AI-x-Car is an AI-integrated car marketplace that enables users to buy, sell, and book test drives seamlessly. Powered by Gemini AI, it enhances speed, automation, and precision in the car-buying experience.
https://github.com/amjustgettingstarted/ai-x-car-
arcjet clerk gemini-ai jsx lucide-react nextjs postgresql prisma-orm reactdropzone ssr supabase tailwindcss
Last synced: about 1 year ago
JSON representation
AI-x-Car is an AI-integrated car marketplace that enables users to buy, sell, and book test drives seamlessly. Powered by Gemini AI, it enhances speed, automation, and precision in the car-buying experience.
- Host: GitHub
- URL: https://github.com/amjustgettingstarted/ai-x-car-
- Owner: AmjustGettingStarted
- Created: 2025-05-09T09:01:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-14T12:29:29.000Z (about 1 year ago)
- Last Synced: 2025-06-14T13:25:07.293Z (about 1 year ago)
- Topics: arcjet, clerk, gemini-ai, jsx, lucide-react, nextjs, postgresql, prisma-orm, reactdropzone, ssr, supabase, tailwindcss
- Language: JavaScript
- Homepage: https://ai-x-car.vercel.app/
- Size: 11 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gemini AI-Integrated Car Marketplace: AI-x-Car
AI-x-Car is a **next-gen car marketplace** where users can **buy, sell, and book test drives effortlessly**. Designed with **speed, automation, and AI-powered precision**, this platform leverages **Gemini AI** to completely transform the car-buying experience.
---
## πΉ AI-Powered Features
- β
**Auto-Upload & Fetch Car Details** β Upload an image, and Gemini AI **automatically extracts car details** (make, model, year, price, etc.).
- β
**Reverse Image Search for Car Details** β AI scans the Image to **verify if the similar car exists**, making searches more reliable.
- β
**Smart Test Drive Booking** β AI optimizes available slots to **quickly schedule test drives** with dealerships.
---
## π‘ Tech Stack & Efficiency
Built on **Next.js**, AI-x-Car delivers **fast, interactive, and scalable experiences** with **Prisma ORM, Clerk authentication, and a PostgreSQL database** for secure transactions.
πΉ **Core Technologies**
- **Next.js** β React framework for server-side rendering, routing, and API routes.
- **React** β UI library for building interactive user interfaces.
- **Prisma ORM** β Type-safe database access for PostgreSQL.
- **PostgreSQL** β Relational database for storing users, cars, bookings, etc.
- **Clerk** β Authentication and user management.
- **Arcjet** β Advanced security solution providing rate limiting, bot mitigation, spam prevention, and email validation
- **Tailwind CSS** β Utility-first CSS framework for rapid UI development.
- **Lucide Icons** β Modern SVG icons.
- **Sonner** β Toast notifications.
- **date-fns** β JavaScript date utility library.
- **Vercel** β Deployment platform (recommended).
π **AI-x-Car isnβt just another car marketplaceβitβs an AI-driven revolution in automotive sales.**
Whether you're buying, selling, or verifying listings, **Gemini AI ensures accuracy, automation, and efficiency like never before.**
---
# π¦ Project Structure
This project is organized as follows:
---
## ποΈ Root Files
- **`.env`** β Environment variables (DB, API keys, etc.)
- **`.gitignore`** β Git ignored files
- **`components.json`** β Component registry/configuration
- **`eslint.config.mjs`** β ESLint configuration
- **`jsconfig.json`** β JavaScript config (paths/aliases)
- **`middleware.js`** β Next.js middleware for request handling
- **`next.config.mjs`** β Next.js configuration
- **`package.json`** β Project dependencies and scripts
- **`postcss.config.mjs`** β PostCSS configuration for Tailwind
- **`tailwind.config.ts`** β Tailwind CSS configuration
- **`README.md`** β Project documentation (you're here)
---
## π `/actions` β API Logic
- **`admin.js`** β Admin-related actions
- **`car-listings.js`** β Car listing CRUD & wishlist logic
- **`cars.js`** β Car data fetching & manipulation
- **`home.js`** β Homepage data logic
- **`settings.js`** β User settings actions
- **`test-drive.js`** β Test drive booking logic
---
## π `/app` β Next.js App Directory
- **`favicon.ico`** β Favicon
- **`globals.css`** β Global CSS
- **`layout.js`** β Root layout (header, footer, providers)
### π `(main)/cars/[id]/` β Dynamic Car Details Page
- **`page.jsx`** β Car details page
- **`_components/car-details.jsx`** β Car details UI and logic
- **`_components/emi-calculator.jsx`** β EMI calculator component
---
## π `/components` β Reusable UI Components
- **`header.jsx`** β App header (nav, auth, logo)
- **`/ui/`** β UI primitives (e.g., Button, Card, etc.)
---
## π `/hooks` β Custom Hooks
- Custom React hooks (e.g., `useFetch`)
---
## π `/lib` β Helpers & Prisma Client
- **`checkUser.js`** β User verification/creation
- **`helper.js`** β Utility functions
### π `/generated/prisma/` β Auto-generated Prisma Client
- **`index.js`**
- **`edge.js`**
- **`client.js`**
- **`default.js`**
- **`/runtime/`**
---
## π `/prisma` β Schema & Migrations
- Contains `schema.prisma` and all migrations
---
## π `/public` β Static Assets
- Images, logos, and other static content
---
## π `/.next` β Next.js Build Output
- Auto-generated during build
---
## π Key Files & Directories
- **`app/layout.js`**: Root layout, includes [`Header`](components/header.jsx), global styles, and providers.
- **`components/header.jsx`**: Navigation bar with authentication, logo, and role-based links.
- **`actions/`**: Server-side logic for cars, admin, test drives, etc.
- **`lib/generated/prisma/`**: Prisma ORM client for database access (auto-generated).
- **`app/(main)/cars/[id]/_components/car-details.jsx`**: Car detail UI, wishlist, share, and quick stats.
- **`app/(main)/cars/[id]/page.jsx`**: Fetches car data and generates metadata for SEO.
- **`hooks/use-fetch.js`**: Custom hook for data fetching (not shown, but referenced).
- **`tailwind.config.ts`**: Tailwind CSS configuration for custom styles.
- **`next.config.mjs`**: Next.js configuration, including image domains and security headers.
---
## π οΈ Getting Started
1. **Install dependencies:**
```sh
npm install --legacy-peer-deps
```