Skip to content

Web-Implementator/laravel-porto

Repository files navigation

Laravel Logo

About Small Test Task

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

About Project

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

Installation

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

Additional features

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages