Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 709 Bytes

Readme.md

File metadata and controls

32 lines (22 loc) · 709 Bytes

About

Demo task for the "Acme" company. Create a RESTful API server for GET, POST, DELETE operations on a Color entity. The color has a "name" and a "hex" value.

Rules

Install php dependencies

docker run --rm -v ${PWD}:/var/www -it composer:2.3 bash -c "cd /var/www && composer install"

Run phpunit tests:

docker run --rm -v ${PWD}:/var/www -it php:7.4-alpine sh -c "cd /var/www/ && php vendor/bin/phpunit tests/"

Run

Nginx && mysql ...

Open http://localhost/color/

GET

POST