V is an easy, ridiculously fast and minimalist language.
You should first install V on you system, it's very easy and standalone or run v up
to update it if you had played with it a while ago.
Then run the following:
git clone https://github.com/vinyll/V-Server-Sent-Event.git
cd V-Server-Sent-Event
v run src
Your server will be running on port 8081.
This is just a V test on running a minimalist self-hosted real-time ServerSentEvent app.
I use HTTPie but anything down to cURL would do.
Read the full thread:
http :8081
Add a comment and get the updated thread:
http post :8081/message author="bob" body="Imagine all the people living life in peace 🕊️"