This is a demo repo that uses Server-Sent Events, the specific use case being a Chat Application with Streaming Response from server. The repo contains implementations for Vannila js and React.
- React
- Vanilla Javascript
- Python (FastAPI)
- fetch-event-source
-
Clone the repo:
git clone https://github.com/9akashnp8/learn-server-sent-events.git
-
Run
docker compose up
to get all the services up and running. The react client can be access via localhost:5173 and vanilla-js-client via localhost:5174