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.git
cd cavu-test
composer install
cp .env.example .env
php artisan key:generate
DB_CONNECTION=****
DB_HOST=****
DB_PORT=****
DB_DATABASE=****
DB_USERNAME=****
DB_PASSWORD=****
php artisan migrate --seed
php artisan optimize:clear
To start the application, you can use the built-in Laravel development server
php artisan serve
or 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 link
or if you wish to test locally with SSL, run the command below to have it available at https://cavu.test
valet secure
To run the tests for the application, you can use either of the following commands
php artisan test
or use
vendon/bin/phpunit
Make 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