This demo now lives in hotwire-django/turbo-django! All updates will happen over there.
This repository contains a demonstration of Hotwire, specifically the three components of Turbo to build a realtime chat app in Django with only server-side custom code. It makes use of Django Channels for websocket support.
To run this demo, after cloning the repository:
pipenv installpipenv shell./manage.py migrate./manage.py createsuperuser./manage.py runserver- Log into
localhost:8000/adminand create aRoom - Go to
localhost:8000, select your room, and start chatting! Open as many windows as you'd like.