Python/FASTAPI ➡ Web/JS
docker-compose up
The backend is running at localhost:8877. You can also stream data with curl http://localhost:8877/
, for example.
The frontend is running at localhost (port 80).
-
FASTAPI - Creating Streams
- Create Streaming Response: https://fastapi.tiangolo.com/advanced/custom-response/#streamingresponse
- Cancel Streaming Response when Client leaves: fastapi/fastapi#4146 (comment)
-
JavaScript - Reading Streams