A simple teapot implementation based on DriftPHP https://driftphp.io .
Usage:
- composer install
- vendor/bin/server run 0.0.0.0:8000 --dev --debug
- docker-compose up -d to start a redis container
- open browser at 0.0.0.0:8000 to say hello
- do a post request against 0.0.0.0:8000/brew with your choice:
{
"type": "coffee",
"amountOfCups": 5
}
or
{
"type": "tea",
"amountOfCups": 3
}