Skip to content

A-Cdeveloper/Autoseller

Repository files navigation

πŸš— Autoseller - Premium Vehicle Dealership

A modern, responsive web application for a premium vehicle dealership built with Next.js 16, featuring an extensive vehicle inventory, filtering system, and comprehensive accessibility support.

✨ Features

πŸš™ Vehicle Management

  • Complete Vehicle Inventory - Browse extensive collection of cars, SUVs, and luxury vehicles
  • Advanced Filtering System - Filter by brand, model, year, price range, and more
  • Detailed Vehicle Pages - Comprehensive vehicle information with high-quality image galleries
  • Image Lightbox - Full-screen image viewing with navigation controls
  • Equipment Details - Detailed vehicle specifications and equipment lists

🏒 Company Information

  • About Us - Company history and mission
  • Our Services - Automotive maintenance, repairs, and professional car care
  • Contact Form - Integrated contact form with email functionality
  • Interactive Map - Google Maps integration for location
  • Partner Showcase - Featured automotive partners and brands

β™Ώ Accessibility & Performance

  • WCAG 2.1 Compliant - Full ARIA support for screen readers
  • Keyboard Navigation - Complete keyboard accessibility
  • Responsive Design - Mobile-first approach with seamless desktop experience
  • Performance Optimized - Dynamic imports, image optimization, and CSS minification
  • SEO Ready - Meta tags, structured data, and semantic HTML

πŸ› οΈ Tech Stack

Frontend

  • Next.js 16.2 with App Router and Turbopack
  • React 19.2 with TypeScript

Framework versions are kept on patched releases for upstream security advisories (for example the Next.js May 2026 security release).

  • Tailwind CSS for styling with PostCSS optimization
  • Framer Motion for animations
  • Font Awesome for icons

State Management & Data Fetching

  • TanStack Query (React Query) for server state management
  • React Hook Form with Zod validation
  • Server Actions for form handling

Backend & API

  • Next.js API Routes for backend functionality
  • Nodemailer for email services
  • JOSE for JWT token management

Development Tools

  • TypeScript for type safety
  • ESLint for code quality
  • CSSnano for CSS minification
  • Autoprefixer for CSS compatibility

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun

Installation

Clone the repository

Install dependencies

Set up environment variables
Create a .env.local file in the root directory:

Run the development server

Open your browser
Navigate to http://localhost:3000 (or the port shown in terminal)

πŸ“ Project Structure

autodemo1/
β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”œβ”€β”€ about-us/          # About Us page
β”‚   β”œβ”€β”€ api/               # API routes
β”‚   β”‚   β”œβ”€β”€ company/       # Company data API
β”‚   β”‚   └── vehicles/      # Vehicle data APIs
β”‚   β”œβ”€β”€ contact/           # Contact page
β”‚   β”œβ”€β”€ services/          # Services page
β”‚   └── vehicles/          # Vehicle pages
β”‚       └── [id]/         # Dynamic vehicle detail pages
β”œβ”€β”€ components/            # Reusable UI components
β”‚   β”œβ”€β”€ layout/           # Layout components (Header, Footer, etc.)
β”‚   β”œβ”€β”€ providers/        # Context providers
β”‚   └── ui/               # UI components (Button, Input, Modal, etc.)
β”œβ”€β”€ constants/            # Application constants
β”œβ”€β”€ features/             # Feature-based components
β”‚   β”œβ”€β”€ contact/          # Contact form functionality
β”‚   β”œβ”€β”€ partners/         # Partner showcase
β”‚   β”œβ”€β”€ services/         # Services display
β”‚   └── vehicles/         # Vehicle-related features
β”œβ”€β”€ hooks/                # Custom React hooks
β”œβ”€β”€ lib/                  # Utility libraries
β”œβ”€β”€ types/                # TypeScript type definitions
└── utils/                # Utility functions

🎨 Key Components

Vehicle Features

  • VehicleGrid - Grid layout for vehicle listings
  • VehicleItem - Individual vehicle card component
  • VehicleDetail - Detailed vehicle information page
  • VehicleImageSlider - Image gallery with lightbox
  • Filters - Advanced filtering system

UI Components

  • Modal - Reusable modal component
  • Button - Customizable button component
  • Input - Form input with validation
  • Spinner - Loading indicator
  • NavLink - Navigation link with hover effects

Layout Components

  • Header - Site header with logo and company data
  • Footer - Site footer with social links
  • Navbar - Main navigation
  • BgImage - Dynamic background images

πŸ”§ Available Scripts

# Development
npm run dev          # Start development server with Turbopack

# Production
npm run build        # Build for production
npm run start        # Start production server

# Code Quality
npm run lint         # Run ESLint

🌐 Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Connect your repository to Vercel
  3. Add environment variables in Vercel dashboard
  4. Deploy automatically

Other Platforms

The app can be deployed to any platform that supports Next.js:

  • Netlify
  • AWS Amplify
  • Railway
  • DigitalOcean App Platform

β™Ώ Accessibility Features

  • ARIA Labels - Comprehensive labeling for screen readers
  • Keyboard Navigation - Full keyboard accessibility
  • Focus Management - Proper focus indicators and management
  • Semantic HTML - Proper heading structure and landmarks
  • Color Contrast - WCAG compliant color schemes
  • Screen Reader Support - Optimized for assistive technologies

πŸš€ Performance Optimizations

  • Dynamic Imports - Lazy loading of heavy components
  • Image Optimization - Next.js Image component with lazy loading
  • CSS Minification - Production CSS optimization
  • Font Optimization - Google Fonts with display swap
  • Bundle Splitting - Automatic code splitting
  • Caching - React Query for efficient data caching

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is private and proprietary. All rights reserved.

πŸ“ž Support

For support or questions, please contact us through the contact form on the website or reach out to the development team.


Built with ❀️ using Next.js, React, and TypeScript

npm run dev
# or
yarn dev
# or
pnpm dev
# Email configuration
SMTP_HOST=your-smtp-host
SMTP_PORT=587
SMTP_USER=your-email@example.com
SMTP_PASS=your-email-password

# JWT secret
JWT_SECRET=your-jwt-secret
npm install
# or
yarn install
# or
pnpm install
git clone <repository-url>
cd autodemo1

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors