A simple real-time chat application built with Django and WebSocket protocol.
- Real-time messaging using WebSocket protocol.
- User authentication and authorization.
- Public and private chat rooms.
- Typing indicators and message status (sent, delivered, read).
- Responsive design for both desktop and mobile.
- Python 3.6 or higher
- Django 3.0 or higher
-
Clone the repository:
git clone https://github.com/Mohammadshekari/django_websocket cd django_websocket
-
Create a virtual environment and activate it:
python3 -m venv env source env/bin/activate # For Unix/Linux .\env\Scripts\activate # For Windows
-
Install the dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Access the chat application at
https://127.0.0.1:8000
.
- Register a new account or log in with existing credentials.
- Join public chat rooms or create your own private rooms.
- Start chatting with other users in real-time.
- View the online status and typing indicators of other users.
- Enjoy seamless messaging experience with WebSocket technology.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/improvement
). - Make your changes and commit them (
git commit -am 'Add feature/improvement'
). - Push to the branch (
git push origin feature/improvement
). - Create a new pull request.
This project is licensed under the MIT License. See the LICENSE file for details.