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 install
pipenv shell
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
- Log into
localhost:8000/admin
and create aRoom
- Go to
localhost:8000
, select your room, and start chatting! Open as many windows as you'd like.