Live coding examples used during Software Crafters Lyon Meetup may 2021:
For a bit of theory, see ๐ซ๐ท De CRUD ร DDD, comment Meetic a sauvรฉ son legacy
For PHP examples, see https://github.com/JMLamodiere/tdd-demo-forumphp2020
Run make
or make help
to see available commands.
Pre-requisites :
Run tests with:
make test
- Local : docs/openapi.yml
- Swaggger Hub (with SwaggerHub API Auto Mocking activated) : https://app.swaggerhub.com/apis/JMLamodiere/tdd-demo-swcraftlyon-2021/1.0.0
Example :
curl -i -X POST "https://virtserver.swaggerhub.com/JMLamodiere/tdd-demo-swcraftlyon-2021/1.0.0/runningsessions" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"distance\":5.5,\"shoes\":\"Adadis Turbo2\"}"