Coder Social home page Coder Social logo

melhin / streamchat Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 87 KB

Demonstrating a chat server using fastapi and redis stream

License: MIT License

Python 64.92% HTML 31.82% Dockerfile 1.01% Shell 0.59% Mako 1.66%
python3 fastapi redis chat redis-stream kubernetes devspace

streamchat's Introduction

StreamChat

Is an attempt to make a completely self reliant redis stream chat using #fastapi.

This project is heavily influenced by the redis-streams-fastapi-chat

My attempts would be to

  • Refactor the single file and add a structure to it
  • Add a basic authentication mechanism
  • Make the new message feature available for the chat

Since this looks like an app to experiment with. I have gone ahead and used it for testing isolated environments on kubernetes

Checkout DevSpace. Its an amazing tool to enable local development on kubernetes

Please Note: The main purpose of this repo is demonstration of how to structure fastapi and redis stream chat usecase

This is not a production ready application

Docker Compose

You can use docker compose to make this work.

docker-compose up

Point your browser to local

Dev Space

The devspace.yaml is provided in the root. This defines the various componenets and their implementation

I have provided a sample_env in this repository. Change the values and rename it to .env

And then

devspace dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.