[Chapter 9 - Demo] Finishing all the demo with all the snapshots of the infra
This commit is contained in:
28
Makefile
28
Makefile
@@ -41,4 +41,30 @@ infrastructure:
|
||||
|
||||
.PHONY: stop
|
||||
stop:
|
||||
$(DOCKER_COMPOSE) --profile async-events --profile async-commands --profile async-projections stop
|
||||
$(DOCKER_COMPOSE) --profile async-events --profile async-commands --profile async-projections stop
|
||||
|
||||
.PHONY: demo
|
||||
demo:
|
||||
http --json --body http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/followers-counter
|
||||
http --json --body http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/timeline
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/author author_id='a64a52cc-3ee9-4a15-918b-099e18b43119' username='bob' email='bob@bob.com'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/author author_id='1fd7d739-2ad7-41a8-8c18-565603e3733f' username='alice' email='alice@alice.com'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/author author_id='1da1366f-b066-4514-9b29-7346df41e371' username='charlie' email='charlie@charlie.com'
|
||||
docker compose exec app php bin/console messenger:consume events_async --limit 3 -vv
|
||||
http --json --body http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/followers-counter
|
||||
http --json --body http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/timeline
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/follow follow_id='8cc71bf2-f827-4c92-95a5-43bb1bc622ad' from_author_id='1fd7d739-2ad7-41a8-8c18-565603e3733f' to_author_id='a64a52cc-3ee9-4a15-918b-099e18b43119'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/follow follow_id='f3088920-841e-4577-a3c2-efdc80f0dea5' from_author_id='1da1366f-b066-4514-9b29-7346df41e371' to_author_id='a64a52cc-3ee9-4a15-918b-099e18b43119'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/follow follow_id='f3088920-841e-4577-a3c2-efdc80f0dea5' from_author_id='1da1366f-b066-4514-9b29-7346df41e371' to_author_id='a64a52cc-3ee9-4a15-918b-099e18b43119'
|
||||
docker compose exec app php bin/console messenger:consume commands_async --limit 3 -vv
|
||||
http --json http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/followers-counter
|
||||
docker compose exec app php bin/console messenger:consume events_async --limit 2 -vv
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/cheep cheep_id='28bc90bd-2dfb-4b71-962f-81f02b0b3149' author_id='a64a52cc-3ee9-4a15-918b-099e18b43119' message='Hello world, this is Bob'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/cheep cheep_id='04efc3af-59a3-4695-803f-d37166c3af56' author_id='1fd7d739-2ad7-41a8-8c18-565603e3733f' message='Hello world, this is Alice'
|
||||
http --json --body POST http://127.0.0.1:8000/chapter7/cheep cheep_id='8a5539e6-3be2-4fa7-906e-179efcfca46b' author_id='1da1366f-b066-4514-9b29-7346df41e371' message='Hello world, this is Charlie'
|
||||
docker compose exec app php bin/console messenger:consume commands_async --limit 3 -vv
|
||||
docker compose exec app php bin/console messenger:consume events_async --limit 3 -vv
|
||||
docker compose exec app php bin/console messenger:consume projections_async --limit 2 -vv
|
||||
http --json http://127.0.0.1:8000/chapter7/author/a64a52cc-3ee9-4a15-918b-099e18b43119/timeline
|
||||
http --json http://127.0.0.1:8000/chapter7/author/1fd7d739-2ad7-41a8-8c18-565603e3733f/timeline
|
||||
http --json http://127.0.0.1:8000/chapter7/author/1da1366f-b066-4514-9b29-7346df41e371/timeline
|
||||
|
||||
Reference in New Issue
Block a user