Demonstration of how to build a real time application using HTML over WebSockets in Django
Go to file
2021-06-15 23:10:19 +02:00
.github Add founding 2021-03-13 11:11:06 +01:00
apps small fix on imports of apps.back and apps.front 2021-04-06 23:27:18 +02:00
Dockerfiles/django Update version debian 2021-03-07 18:36:40 +01:00
my_demo Add form Comments 2021-03-21 12:53:47 +01:00
.gitignore Add dummy data 2021-03-09 22:03:17 +01:00
Caddyfile Fix bad names 2021-03-08 21:25:34 +01:00
comments.json Add dummy data 2021-03-09 22:03:17 +01:00
db.sqlite3 Add paginator 2021-03-12 21:16:23 +01:00
demo-v2.gif Update gif 2021-03-21 14:38:11 +01:00
demo.gif Add gif 2021-03-13 11:07:58 +01:00
django-launcher.dev.sh Fix connect websockets 2021-03-11 21:57:21 +01:00
django-launcher.pro.sh Fix bad names 2021-03-08 21:25:34 +01:00
docker-compose.dev.yaml Add redis 2021-03-17 22:25:00 +01:00
manage.py Fix bad names 2021-03-08 21:25:34 +01:00
posts.json Add dummy data 2021-03-09 22:03:17 +01:00
README.md Update README.md 2021-06-15 23:10:19 +02:00
requirements.txt Fix connect websockets 2021-03-11 21:57:21 +01:00

Demo: HTML over WebSockets in Django

Demonstration of how to build a real time application using HTML over WebSockets in Django

demo

Broadcast

demo v2

Article that inspired

https://alistapart.com/article/the-future-of-web-software-is-html-over-websockets/

Explanation

Spanish

https://programadorwebvalencia.com/html-sobre-websockets/

https://www.youtube.com/watch?v=02IjScPlDH0

English

https://testdriven.io/blog/html-over-websockets/

Run demo

docker-compose -f docker-compose.dev.yaml up -d

Open

my-demo.localhost

Load fake data

docker exec -it demo-html-over-websockets-in-django_django_1 python3 manage.py loaddata comments.json

Interesting projects using this technique

Thanks @jbjuin

Integrated with Django

Without Django:

  • idom: HTML is generated using a Python syntax.