This project is a web application for managing a driving school. It allows for the management of students, instructors, vehicles, driving sessions, and exams.
Prerequisites
- PHP 8.2
- Composer
- MySQL
- NodeJS
Option 1: Traditional Installation
-
Clone the project
git clone https://github.com/itzAymvn/auto-ecole-laravel.git cd auto-ecole-laravel
-
Install dependencies
composer update composer install npm install
-
Create a
.env
file from the.env.example
filecp .env.example .env
-
Generate an application key
php artisan key:generate
-
Create a database and configure the
.env
file -
Run migrations
php artisan migrate
You can also run seeders to have test data
php artisan db:seed
-
Start the server
php artisan serve
Option 2: Docker Installation
-
Clone the project
git clone https://github.com/itzAymvn/auto-ecole-laravel.git cd auto-ecole-laravel
-
Create a
.env
file from the.env.example
file```sh cp .env.example .env ```
-
Replace the following values in the
.env
file:DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=auto_ecole DB_USERNAME=user DB_PASSWORD=password
-
Start the application using Docker Compose
docker-compose up -d
or
docker compose up -d
-
Run migrations within the Docker container
docker exec auto-ecole-app php artisan migrate
-
Seed the database with test data
docker exec auto-ecole-app php artisan db:seed
Access the application at http://localhost:8000
To log in, use the following credentials:
- Administrator:
- email: [email protected]
- password: password
- Instructor:
- email: [email protected] / [email protected]
- password: password
Or create an account to access the application.