This is a coding challenge mvp and not a real product. There is no user authentication. The vehicle's update and delete routes exist, but are not used by the frontend.
- Docker
- PHP
- Laravel
- PHPUnit
- MySQL
- Redis
Docker is used for development environment. We use docker compose to start everything you need to run the project.
- If not already done, install Docker Desktop.
- Run
./vendor/bin/sail up -d
in the project's directory to build the container and start all services. - Wait a few seconds for the MySQL service to start. Then run
./vendor/bin/sail artisan migrate
in the project's directory to run the migrations. - The API will be accessible on http://localhost/api. You must not have anything else running on port 80 (laravel), 3306 (mysql), or 6379 (redis).
- Have fun!
Run ./vendor/bin/phpunit
in the project's directory to run unit tests.