This is a monorepo for testing server-sent events functionality.
- SSE streaming
- Websocket
TODO:
- [] add tests
- [] dockerize
- [] host
- Python 3.10+
- FastAPI
- Uvicorn
- Uvicorn[standard]
- node 20+
- npm 10+
-
Clone the repo git clone https://github.com/MiraDys/server-events-test.git
-
Install Frontend dependency
cd server-events-frontend
npm install
npm run dev
-
Install Backend dependency
cd backend
pip install -r requirements.txt
-
Run the backend
python sse-backend.py
python websocket-backend.py
-
Open the frontend in a browser http://localhost:3000/
MIT License