A real-time chat application built with Django and WebSockets. This project allows users to communicate in real-time, making it suitable for various applications such as customer support, community forums, or personal messaging.
- Real-time messaging using Django Channels
- User authentication
- Chat rooms for group conversations
- User-friendly interface
Before running this project, ensure you have the following installed:
- Python 3.x
- Node.js (for managing frontend assets)
- Django 3.x or higher
- Django Channels
To install the required Python packages, you can use pip. Create a virtual environment and install the dependencies as follows:
-
Clone the repository:
git clone https://github.com/HjtDev/django-live-chat.git cd django-live-chat -
Create and activate a virtual environment:
python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the required Python packages:
pip install -r requirements.txt
-
Install Node.js packages (if applicable):
npm install
Configure your database: Update the database settings in settings.py according to your database configuration.
-
Run migrations:
python manage.py makemigrations && python manage.py migrate -
Create superuser(to see all the rooms as admin):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver