Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 438 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 438 Bytes

teapot

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
}