A real-time chat application built with Django and jQuery. This app allows users to create chat rooms and send messages in real time within these rooms.
- Create and join chat rooms: Users can create or join chat rooms by entering a room name and username.
- Real-time messaging: Messages are updated in real time using AJAX polling every second. Also added Auto-scroll Chat Display feature.
- Responsive UI: The application is styled to work well on various devices.
- Django-powered backend: Using Django to handle room and message management.
- Backend: Django
- Frontend: HTML, CSS, JavaScript (jQuery)
- Database: SQLite (default in Django)
- Python 3.6+
- pip (Python package installer)
- Django 3.0+
- Clone the repository:
git clone https://github.com/yourusername/django-chat-app.git cd django-chat-app
- Create a virtual environment:
python -m venv env
- Activate the virtual environment:
- on window:
.\env\Scripts\activate
- On macOS/Linux:
source env/bin/activate
- on window:
- Install the required packages:
pip install -r requirements.txt
- Start the development server:
python manage.py runserver
- Open your browser and go to http://127.0.0.1:8000/
- Enter a room name and username on the landing page and click "Enter Room".
- If the room does not exist, it will be created automatically.
- Inside the chat room, type your message in the input field and click "Send" to chat in real time.
If you want to contribute to this project, please fork the repository and create a new branch for your feature or bug fix. Then, submit a pull request for review.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Django community for providing robust frameworks and resources.
- jQuery for simplifying AJAX requests
- DOpen-source communities for continuous support and contributions.
For any inquiries, feel free to reach out to me:
- Email: pratikshasingh923@gmail.com