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.
- Real-time chat functionality
- User authentication and authorization
- Multi-room support
- online P2P video call
- Django
- Django Channels
- Daphne (ASGI server)
- Bootstrap
- HTML, CSS, JavaScript
- Clone the repository:
git clone https://github.com/your-username/realtime-chat-app.git
- Navigate to the project directory:
cd Real-Time-Chat-App
- Install dependencies:
pip install -r requirements.txt
- Apply database migrations:
python manage.py makemigrations
python manage.py migrate
- Start the Daphne server with runserver Command:
python manage.py runserver
- Open your web browser and go to http://localhost:8000/ to access the app.
Update the database configuration in the settings.py
file.
# settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / "db.sqlite3",
}
}
- Create a superuser account:
python manage.py createsuperuser
- Run the Daphne server:
python manage.py runserver
-
Open your web browser and go to http://localhost:8000/admin/ to log in with the superuser credentials.
-
Create chat rooms and manage users through the Django admin interface.
-
Open multiple browser tabs to simulate different users and start chatting in real-time.
- Special thanks to the Django and Django Channels communities for their excellent documentation and support.