An open API service indexing awesome lists of open source software.

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.

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

```