Skip to content

redis-projects/redis-draw-aa-demo

 
 

Repository files navigation

Javascript canvas drawing tool using Redis pub/sub

Features

  • Uses FastAPI for serving WebSockets
  • Draw commands are communicated using Redis PubSub
  • There is no local echo
  • Drawings are also stored to a Redis Stream for replay
    • Stream is deleted on clear

Usage

pip install -r requirements.txt
uvicorn websocket:app

Redis settings can be defined with environment variables REDIS_HOST, REDIS_PORT and REDIS_PASS.

Server will by default listen on http://127.0.0.1:8000. Alternatively you can give uvicorn parameters --host and --port

By default a new UUID will be generated on access none is specified. Each canvas has its own pubsub topic and stream.

About

Javascript/canvas Draw using Redis PubSub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 34.4%
  • JavaScript 29.3%
  • Python 18.5%
  • TypeScript 12.1%
  • SCSS 2.1%
  • Dockerfile 1.8%
  • HTML 1.8%