Skip to content

A real-time chat application built with Django and Channels, allowing users to communicate instantly in chat rooms

Notifications You must be signed in to change notification settings

AI35/Real-time-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Chat Application

A real-time chat application built with Django and Channels, allowing users to communicate instantly in chat rooms.

Features

  • Real-time messaging using WebSockets
  • User authentication and authorization
  • Multiple chat rooms
  • Message history
  • Responsive design

Technologies Used

  • Django 5.2.1
  • Django Channels 4.0.0
  • Daphne 4.0.0
  • Channels Redis 4.1.0
  • WhiteNoise 6.5.0
  • Django CORS Headers 4.3.0

Prerequisites

  • Python 3.9+
  • pip

Installation

  1. Clone the repository
git clone github.com/Ai35/Real-time-chat.git
  1. Create a virtual environment and activate it
python -m venv venv
source venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Set up the database
python manage.py makemigrations
python manage.py migrate
  1. Create a superuser (admin)
python manage.py createsuperuser
  1. Collect static
python manage.py collectstatic
  1. Run the server
python run_daphne.py

Usage

  1. Open the application in your web browser
  2. Log in with your superuser credentials
  3. Create a new chat room or join an existing one
  4. Start chatting with other users in real-time

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Acknowledgments

  • Django Channels documentation
  • Channels Redis documentation
  • Django documentation
  • Python documentation

About

A real-time chat application built with Django and Channels, allowing users to communicate instantly in chat rooms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published