Skeleton repo for Car & Classic code assignment. You will be given the actual assignment during the live-coding pair-programming session.
- Laravel 12
- PHPUnit 12
- Vue.js 3
- TailwindCSS 4
- Vite.js
- Vitest
- MySQL 8
- Routes:
routes/- API endpoint in
api.php - Home endpoint in
web.php
- API endpoint in
- Migrations:
database/migrations/- Important:
2023_05_24_144550_create_cars_table.php
- Important:
- Front-end pages and components:
resources/js/- Home page:
Pages/Home.vue - Components:
Components/
- Home page:
- Front-end test using
vitestand@vue/test-utils:resources/js/Components/Car.spec.js - Back-end tests using
phpunit:tests/
- PHP 8.4 or newer
- Composer
- Node.js 22
Run the following commands to set up your environment:
cp .env.example .env
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php84-composer:latest \
composer install --ignore-platform-reqs
vendor/bin/sail npm install
vendor/bin/sail artisan migrate --force
vendor/bin/sail artisan db:seed- Back-end:
vendor/bin/sail up -d - Front-end:
vendor/bin/sail npm run dev
- Back-end:
vendor/bin/sail test - Front-end:
vendor/bin/sail npm run test