From d8cb39b67dda2f993b8ad64bbe96b70f00b39a34 Mon Sep 17 00:00:00 2001 From: Pedro Correa Date: Thu, 15 May 2025 14:36:00 -0300 Subject: [PATCH] :memo: added readme --- README.org | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.org diff --git a/README.org b/README.org new file mode 100644 index 0000000..6aba0be --- /dev/null +++ b/README.org @@ -0,0 +1,26 @@ +* SSE server in Golang + +This is just a POC of a SSE server containing two endpoints, 1 for subscribing and 1 for publishing messages. + + +** How to run + +You can use =just= to run the server locally + +#+begin_src shell +just run +#+end_src + +** How to use + +After running the server, you can subscribe using =curl= with the following command + +#+begin_src shell +curl localhost:8000/subscribe +#+end_src + +Later, you can simply publish a message in the =/publish= endpoint with the following command + +#+begin_src shell +curl localhsot:8000/publish -d '{"name": "Tulkdan", "value": 2000 }' +#+end_src -- 2.51.2