{"repo":"leonh/redis-streams-fastapi-chat","free":true,"listed":false,"github":"https://github.com/leonh/redis-streams-fastapi-chat","clone":"git clone https://github.com/leonh/redis-streams-fastapi-chat.git","description":"A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.","language":"Python","stars":354,"topics":["fastapi","starlette","redis","asyncio","websockets","redis-streams"],"license":"MIT","category":"databases-storage","readme_excerpt":"redis-streams-fastapi-chat A simple demo of Redis Streams backed Chat app using Websockets, Python Asyncio and FastAPI/Starlette. Requires Python version = 3.11 and Redis 7+ Overview This project has been created to help understand some related concepts. Python standard library asyncio, websockets (which are often cited as a classic use case for async python code), also Redis Streams. It is very much inteded to be an intentionally simple starting point rather than a usable product as is. Installation Local Development Make sure you have Redis running locally: Usage Local Development Then open http://localhost:9080 in your browser. Docker Compose The easiest way to run the application with all dependencies: This will start both the chat application and Redis in containers. The app will be available at http://localhost:9080 Environment Variables The following environment variables can be configured: - REDIS HOST - Redis server hostname (default: localhost , set to redis in Docker) - REDIS PORT - Redis server port (default: 6379 )","default_branch":null,"files":null,"tree":[],"storefront":"/r/leonh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leonh/redis-streams-fastapi-chat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}