๐Ÿš— CarHub โ€” Modern Car Marketplace Platform

A full-stack Laravel application showcasing enterprise-grade architecture, performance optimization, and real-world scalability.

โšก Tech Stack Highlights

Backend: Laravel 11, Eloquent ORM, Sanctum, Socialite, Filament Admin | Frontend: Blade, Alpine.js, Tailwind CSS, Vite | Search: Meilisearch | Real-time: Laravel Reverb, WebSockets | Monitoring: Sentry, Lighthouse CI | Deployment: GitHub Actions, Docker, CI/CD Pipeline

โœ… Core Achievements

  • 100% API test coverage (20+ feature tests)
  • Lighthouse performance score: 94/100
  • Full-text search with Meilisearch
  • OAuth integration (Google, Facebook)
  • Multi-language support (EN, FR)
  • Admin dashboard with Filament

๐ŸŽฏ Best Practices

  • RESTful API design patterns
  • Proper authorization with Policies
  • Database seeding & factories
  • Error tracking & monitoring
  • Automated deployment pipeline
  • Accessibility (WCAG compliant)

๐Ÿ“š Documentation

๐Ÿ‘‹ Introduction

CarHub is a production-ready, full-stack Laravel application demonstrating modern web development practices. Built with scalability and maintainability at its core, the platform features advanced search capabilities, real-time features, comprehensive testing, and enterprise-grade monitoring. The codebase serves as both a functional marketplace and a reference implementation for Laravel best practices including API design, authorization patterns, database optimization, and deployment automation.

Perfect for: Learning advanced Laravel patterns, recruiting talented developers, or deploying a scalable car marketplace.

โš™๏ธ Quick Start

git clone https://github.com/yourusername/laravella-storefront.git
cd laravella-storefront
composer install && npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev
php artisan serve

Your app will be running at http://localhost:8000

๐Ÿ”ง Configuration

Environment Variables โ€” Configure .env:

APP_NAME=CarHub
APP_ENV=production
DB_CONNECTION=mysql
QUEUE_DRIVER=redis
MEILISEARCH_HOST=http://localhost:7700
SENTRY_LARAVEL_DSN=your-sentry-dsn

โœจ Feature Showcase

๐Ÿš— Car Management

  • CRUD operations with proper authorization
  • Feature and image management
  • Bulk operations with queue jobs
  • Image optimization & lazy loading

๐Ÿ” Authentication

  • Session-based + OAuth (Google, Facebook)
  • Email verification workflow
  • Password reset with token validation
  • Rate limiting & CSRF protection

๐Ÿ” Advanced Search

  • Full-text search with Meilisearch
  • Multi-field filtering (price, year, location)
  • Real-time search suggestions
  • Typo-tolerant matching

๐Ÿ‘ค User Experience

  • Personalized watchlist / favorites
  • Profile management & preferences
  • Multi-language support (EN/FR)
  • Responsive design (mobile-first)

๐Ÿ—„๏ธ Database Design

Well-structured relational schema with proper foreign keys and indexes:

Core Domain:
  • users
  • cars
  • car_features
  • car_images
  • favorite_cars
Taxonomies:
  • makers
  • models
  • car_types
  • fuel_types
  • states / cities

๐ŸŒฑ Factories & Seeders

Factories:

  • CarFactory: Generates random cars.
  • CarFeatureFactory: Generates random car features.
  • CarImageFactory: Generates random car images.
  • UserFactory: Creates test users.

Seeders:

  • DatabaseSeeder: Seeds initial data for makers, car types, and more.

Routes & Endpoints

Clean, RESTful API design with proper middleware protection:

Route Method Auth Required Description
/ GET โ€” Homepage with featured cars
/car/search GET โ€” Search with Meilisearch
/car POST โœ“ Create car listing
/watchlist GET โœ“ View user's saved cars

๐ŸŽฎ Controllers & Architecture

Key Controllers:

  • CarController: Handles car CRUD operations and features management.
  • SignupController: Manages user registration.
  • WatchlistController: Handles adding/removing cars to/from the watchlist.
  • ProfileController: Manages user profile updates and password changes.

๐Ÿ”’ Authorization & Policies

CarPolicy: Authorizes actions like creating, updating, and deleting cars.

๐Ÿงช Test Coverage

The project includes 20+ feature tests ensuring core functionality is bulletproof:

CarTest โ€ข AuthTest โ€ข SignupTest โ€ข WatchlistTest โ€ข ProfileTest โ€ข PasswordResetTest โ€ข HomeTest โ€ข EmailVerifyTest โ€ข FavoritesTest โ€ข SearchTest

Run tests: php artisan test ยท Coverage: php artisan test --coverage

โ™ฟ Accessibility & SEO

WCAG 2.1 Compliant:

  • โœ“ Semantic HTML structure
  • โœ“ Keyboard navigation support
  • โœ“ Screen reader friendly
  • โœ“ ARIA labels & roles
  • โœ“ Color contrast (4.5:1 minimum)
  • โœ“ Responsive design

SEO Optimized:

  • โœ“ Dynamic meta tags & canonical URLs
  • โœ“ Open Graph & Twitter Cards
  • โœ“ Structured data (Schema.org)
  • โœ“ Mobile-first responsive

SEO Features

๐ŸŽจ Frontend & Styling

๐Ÿ”— Integrations & Monitoring

Authentication
  • โœ“ Google OAuth (Socialite)
  • โœ“ Facebook OAuth (Socialite)
Communication
  • โœ“ Mailtrap (email testing)
  • โœ“ Email verification & password reset
Monitoring & Performance
  • โœ“ Sentry (error tracking)
  • โœ“ Lighthouse CI (performance)
Search & Real-time
  • โœ“ Meilisearch (full-text search)
  • โœ“ Laravel Reverb (WebSockets)

๐Ÿš€ CI/CD Pipeline

Automated deployment via GitHub Actions โ€” every release triggers a complete build, test, and deployment cycle.

Workflow Pipeline

โœ“ Checkout
Code pulled from GitHub release tag
โœ“ Setup
PHP 8.2 + Node.js + Composer + npm
โœ“ Install
Dependencies installed & cached
โœ“ Build
Migrations, key generation, asset compilation
โœ“ Test
Full test suite runs before deployment
โœ“ Deploy
Server pulls latest release, optimizes app

Configuration: .github/workflows/deploy.yml

๐Ÿ“„ License & Contributing

This application is open-source software licensed under the MIT License. We welcome contributions from the community. Fork the repository, create a feature branch, and submit a pull request.

Questions? Check out the GitHub repository or review the detailed documentation in the /docs folder.