8000 GitHub - Pratiksha-287/chat-app: This project is a real-time chat application built with Django, allows users to create and join chat rooms. Messages are updated in real-time using AJAX polling to simulate live messaging. Key components include: Models for Room and Message storage. Views that handle room creation, message sending, and retrieving messages.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This project is a real-time chat application built with Django, allows users to create and join chat rooms. Messages are updated in real-time using AJAX polling to simulate live messaging. Key components include: Models for Room and Message storage. Views that handle room creation, message sending, and retrieving messages.

License

Notifications You must be signed in to change notification settings

Pratiksha-287/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Chat Application

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.

Features

  • 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.

Tech Stack

  • Backend: Django
  • Frontend: HTML, CSS, JavaScript (jQuery)
  • Database: SQLite (default in Django)

Screenshots

Main Page

Main Page

Chat Room

Chat Room

Installation

Prerequisites

  • Python 3.6+
  • pip (Python package installer)
  • Django 3.0+

Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/django-chat-app.git
    cd django-chat-app
  2. Create a virtual environment:
    python -m venv env
  3. Activate the virtual environment:
    • on window:
       .\env\Scripts\activate
    • On macOS/Linux:
       source env/bin/activate
  4. Install the required packages:
      pip install -r requirements.txt
  5. Start the development server:
    python manage.py runserver
  6. Open your browser and go to http://127.0.0.1:8000/

Usage

  • 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.

Contributing

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.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Acknowledgments

  • Django community for providing robust frameworks and resources.
  • jQuery for simplifying AJAX requests
  • DOpen-source communities for continuous support and contributions.

Contact

For any inquiries, feel free to reach out to me:

About

This project is a real-time chat application built with Django, allows users to create and join chat rooms. Messages are updated in real-time using AJAX polling to simulate live messaging. Key components include: Models for Room and Message storage. Views that handle room creation, message sending, and retrieving messages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0