This is an asynchronous WebSocket chat application built using the Django framework. The application allows users to send and receive messages in real-time without having to refresh the page.
- Real-time messaging: Users can send and receive messages instantly without the need to refresh the page.
- Asynchronous communication: The application utilizes Django Channels to handle WebSocket connections and enable asynchronous I/O, ensuring high-concurrency and low-latency communications.
- User-friendly interface: The chat interface is intuitive and easy to use, providing a seamless chatting experience.
- Performance optimization: The application has been optimized for performance by implementing caching using Django's caching framework and minimizing database queries.
To set up the application, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/chat-app.git
- Navigate to the project directory:
cd chat-app
- Create a virtual environment:
virtualenv env
- Activate the virtual environment:
- For Windows:
env\Scripts\activate
- For Unix or Linux:
. env/bin/activate
- For Windows:
- Install django:
pip install django
- Run database migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver