Make sure you have the following installed on your system before proceeding with the installation:
- PHP ^8.0
- Composer
- Laravel 10
- Laravel Valet (optional, for local development with Valet)
git clone https://github.com/ogunsakin01/cavu-test.gitcd cavu-testcomposer installcp .env.example .envphp artisan key:generateDB_CONNECTION=****
DB_HOST=****
DB_PORT=****
DB_DATABASE=****
DB_USERNAME=****
DB_PASSWORD=****php artisan migrate --seedphp artisan optimize:clearTo start the application, you can use the built-in Laravel development server
php artisan serveor you can directly use PHP built-in server
php -S localhost:8000 -t public/or if you choose to use Laravel Valet, run the command below to have it available at http://cavu.test
valet linkor if you wish to test locally with SSL, run the command below to have it available at https://cavu.test
valet secureTo run the tests for the application, you can use either of the following commands
php artisan testor use
vendon/bin/phpunitMake sure to run these commands from the root folder of the application. The tests will help ensure that the application functions as expected and that any changes made in the future do not introduce regressions.
The API documentation can be found at https://documenter.getpostman.com/view/3172372/2s9YsNcUxg