This project is an attempt to use the Clean Architecture on an application for managing music.
I've made an UML diagram to have an overview of the big picture for the CreateMusicUseCase and FindMusicUseCase use cases.
- HTTP Request / Response
- Routing
- Persistence
docker-compose up
Inside the php-fpm container make:
php bin/console doctrine:schema:create
chmod 777 var/data/data.sqlite
./vendor/bin/simple-phpunit
POST http://127.0.0.1:8080/music
body:
{
"durationInSeconds": 267,
"title": "Ize Of The World",
"lyrics": "I think i know what you mean but watch what you say...."
}
GET http://127.0.0.1:8080/music/{id}
DELETE http://127.0.0.1:8080/music/{id}