Skip to content

A Real time chat application made by our group with the help of django and its dependencies for our 4th sem full stack python web dev training

Notifications You must be signed in to change notification settings

AtulSingh11-0/Real-Time-Chat-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time-Chat-App using Django Channels

Project Overview

This Real-time Chat App is built with Django Channels and Daphne, providing users with a seamless and interactive real-time communication experience. The frontend is designed using Bootstrap, HTML, and CSS for a responsive and user-friendly interface.

Features

  • Real-time chat functionality
  • User authentication and authorization
  • Multi-room support
  • online P2P video call

Technologies Used

  • Django
  • Django Channels
  • Daphne (ASGI server)
  • Bootstrap
  • HTML, CSS, JavaScript

Installation

  1. Clone the repository:
git clone https://github.com/your-username/realtime-chat-app.git
  1. Navigate to the project directory:
cd Real-Time-Chat-App
  1. Install dependencies:
pip install -r requirements.txt
  1. Apply database migrations:
python manage.py makemigrations
python manage.py migrate
  1. Start the Daphne server with runserver Command:
python manage.py runserver
  1. Open your web browser and go to http://localhost:8000/ to access the app.

Configuration

Database Configuration

Update the database configuration in the settings.py file.

# settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / "db.sqlite3",
    }
}

Usage

  1. Create a superuser account:
python manage.py createsuperuser
  1. Run the Daphne server:
python manage.py runserver
  1. Open your web browser and go to http://localhost:8000/admin/ to log in with the superuser credentials.

  2. Create chat rooms and manage users through the Django admin interface.

  3. Open multiple browser tabs to simulate different users and start chatting in real-time.

Acknowledgments

  • Special thanks to the Django and Django Channels communities for their excellent documentation and support.