rsayed007 / car-api-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

Clone the project from github and run below command on root directory to copy docker-compose.yml file

cp docker-compose.yml.example docker-compose.yml

NB: All docker settings are isolated.

Now goto the app directory and copy .env.example into .env and sibling .env in docker directory.

cp .env.example .env

Run Docker

To run the project you have to run this command from car-api-test project directory root

docker-compose up -d --build

Docker runs all the services in the background upon successful execution of above command. Now install app project dependencies running following commands step by step.

docker-compose exec app composer install

To migrate database changes run the command

docker-compose exec app php artisan migrate

NB: before starting any request, please give permission at storage folder.

To show all the running process run the command bellow

docker-compose ps

To stop all the services run the command

docker-compose down

About


Languages

Language:PHP 81.8%Language:Blade 15.5%Language:Dockerfile 1.5%Language:Shell 0.9%Language:JavaScript 0.2%