moritiza / sample

This is a simple test case

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample

About

This is a simple test case
This project is a simple api.

How can I run it?

#1 Execute composer install command in DocumentRoot directory

composer install

#2 Make sure the docker is installed

docker --version
If the docker is not installed, you can use this link

Install Docker

#3 Make sure the docker service is running

sudo systemctl start docker.service

#4 Execute docker-compose build command

sudo docker-compose build webserver --no-cache

#5 Execute docker-compose up command

sudo docker-compose up --force-recreate

#6 Make sure everything is OK! 😉

Send request to 'http://localhost/api/ping' and you must receive 'pong'
curl -X GET "http://localhost/api/ping" -H "Accept: application/json"

How can I dive into?

Just import Sample.postman_collection.json and enjoy it! 😄

How can I test it?

#1 Get into Docker container shell

sudo docker exec -it webserver bash

#2 Execute artisan command

php artisan test

About

This is a simple test case

License:MIT License


Languages

Language:PHP 88.4%Language:Blade 10.4%Language:Shell 1.0%Language:Dockerfile 0.3%