Documentation for car-hub.xyz

Table of Contents

Introduction

car-hub.xyz is a Laravel-based web application designed for managing cars, their features, and user interactions such as watchlists and authentication. It leverages Laravel's built-in features like Eloquent ORM, Blade templates, and Sanctum for API authentication.

Installation

Configuration

Features

Database Structure

Domain Tables:

Factories and Seeders

Factories:

Seeders:

Routes

Public Routes:

Authenticated Routes:

Routes are defined in:

Controllers

Key Controllers:

Policies

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

Testing

Feature Tests:

Run tests with: php artisan test

Accessibility

Styling and Frontend

Third-Party Integrations

Deployment (with GitHub Actions)

The application uses GitHub Actions for Continuous Integration and Deployment (CI/CD). The deployment process is automated and triggered on the creation of a new release.

GitHub Actions Workflow

The deployment workflow is defined in deploy.yml.

How It Works

License

This application is open-sourced software licensed under the MIT license.