Two lists are given:
- car list
- a list of users
Need to make an API for renting a car.
Additional requirements:
- at one time, 1 user can drive only one car
- only 1 user can drive 1 car at a time
Basic Laravel project for architecture Porto
All local requests to the model go through
All tests must be placed inside the container
App/Containers/*/Tests
App/Containers/*/*/Tests
All migrations must be placed inside the container
App/Containers/*/Data/Migrations
App/Containers/*/*/Data/Migrations
All routes must be placed inside the container
App/Containers/*/UI/API/Routes/api.php
App/Containers/*/*/UI/API/Routes/api.php
App/Containers/*/UI/Web/Routes/web.php
App/Containers/*/*/UI/Web/Routes/web.php
Cloning the repository
git clone https://github.com/Web-Implementator/laravel-porto.git
Copy and edit config .env file
cd ./laravel-porto
make project-install
Database migration
make migrate
Fake data generation
make seed
Start Horizon
make horizon
Generation of API documentation
make api-docs
After generation go to documentation to url (localhost or your APP_URL)
http://localhost/api/documentation
Running Autotests
php artisan test