- git clone https://github.com/mohammadHamzeh/interview.git
- cd interview
- composer install --no-plugins --no-scripts
- cp .env.example .env
- php artisan key:generate
- vim .env // update the variables names
- docker-compose up
- sail artisan optimize
- sail artisan migrate --seed
- Inside the project root directory type the following:
sail artisan test
request:
curl -X GET http://127.0.0.1:8000/version \
-H 'Content-Type: application/json'
response:
{
"tag":"",
"commit":"",
"date":"",
"service":"interview"
}