# CHANGELOG - Lot 0 - Initialisation projet

## Objectif

Mettre en place une base Laravel / Vue 3 / Inertia deployable et testable, avec authentification, layout CRM minimal et documentation d'installation.

## Fichiers ajoutes

- `.editorconfig`
- `.env.example`
- `.gitignore`
- `artisan`
- `composer.json`
- `package.json`
- `phpunit.xml`
- `vite.config.js`
- `README.md`
- `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- `app/Http/Controllers/Auth/RegisteredUserController.php`
- `app/Http/Controllers/Controller.php`
- `app/Http/Controllers/DashboardController.php`
- `app/Http/Middleware/HandleInertiaRequests.php`
- `app/Models/User.php`
- `app/Providers/AppServiceProvider.php`
- `bootstrap/app.php`
- `bootstrap/providers.php`
- `config/app.php`
- `config/auth.php`
- `config/cache.php`
- `config/database.php`
- `config/filesystems.php`
- `config/hashing.php`
- `config/logging.php`
- `config/mail.php`
- `config/queue.php`
- `config/services.php`
- `config/session.php`
- `database/factories/UserFactory.php`
- `database/migrations/0001_01_01_000000_create_users_table.php`
- `database/migrations/0001_01_01_000001_create_cache_table.php`
- `database/migrations/0001_01_01_000002_create_jobs_table.php`
- `database/seeders/DatabaseSeeder.php`
- `public/.htaccess`
- `public/index.php`
- `public/robots.txt`
- `public/images/logo-header.png`
- `resources/css/app.css`
- `resources/js/app.js`
- `resources/js/bootstrap.js`
- `resources/js/Layouts/AuthenticatedLayout.vue`
- `resources/js/Layouts/GuestLayout.vue`
- `resources/js/Pages/Auth/Login.vue`
- `resources/js/Pages/Auth/Register.vue`
- `resources/js/Pages/Dashboard.vue`
- `resources/views/app.blade.php`
- `routes/auth.php`
- `routes/console.php`
- `routes/web.php`
- `tests/TestCase.php`
- `tests/Feature/Auth/LoginTest.php`
- `tests/Feature/DashboardAccessTest.php`
- `tests/Unit/ExampleTest.php`

## Fichiers modifies

Aucun. Lot initial.

## Migrations a executer

```bash
php artisan migrate --seed
```

Migrations incluses :

- `0001_01_01_000000_create_users_table.php`
- `0001_01_01_000001_create_cache_table.php`
- `0001_01_01_000002_create_jobs_table.php`

## Commandes Linux a lancer

```bash
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev
php artisan serve
```

## Equivalent PowerShell

```powershell
composer install
npm install
Copy-Item .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev
php artisan serve
```

## Tests automatiques

```bash
php artisan test
npm run build
```

## Tests manuels

1. Ouvrir `http://127.0.0.1:8000`.
2. Verifier la redirection vers `/login` si l'utilisateur n'est pas connecte.
3. Se connecter avec `admin@synoluvia.local` / `password` apres `php artisan migrate --seed`.
4. Verifier l'affichage du layout CRM : menu lateral, logo, Tableau de bord.
5. Tester la deconnexion.
6. Tester la creation d'un compte via `/register`.

## Points de vigilance

- Laravel 12 est retenu car c'est la version courante stable et elle reste compatible PHP 8.3+.
- Le mot de passe `password` est uniquement un identifiant local de demarrage. Il doit etre change avant tout acces public.
- Le fichier `.env.example` cible MySQL par defaut pour rester compatible OVH. SQLite peut etre utilise ponctuellement en local.
- Les tables CRM metier ne sont pas encore creees : elles arrivent au lot 1.
- Les statistiques du tableau de bord sont des placeholders tant que les tables CRM ne sont pas disponibles.
