Skip to content

Mr-Destructive/django-htmx-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-HTMX Chat Application

This is a simple backend focused chat application, created with django and htmx. There is 0% trace of javascript in the source code :) HTMX abstracts away the usage of Javascript for connecting and interacting with the websockets and other protocols.

Demo:

chat-app-demo.webm

Features:

  • Create Rooms
  • Join Room with code
  • Send and Recieve Message

Requirements:

  • python 3.10
  • django 4.1
  • channels
  • htmx > 1.8.5

Installation:

  1. Clone the repository
git clone https://github.com/Mr-Destructive/django-htmx-chat
  1. Create a python virtual environment
python -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Make Migrations:
python manage.py migrate
  1. Run the Server:
python manage.py runserver