A real-time chat application built with Django and Channels, allowing users to communicate instantly in chat rooms.
- Real-time messaging using WebSockets
- User authentication and authorization
- Multiple chat rooms
- Message history
- Responsive design
- Django 5.2.1
- Django Channels 4.0.0
- Daphne 4.0.0
- Channels Redis 4.1.0
- WhiteNoise 6.5.0
- Django CORS Headers 4.3.0
- Python 3.9+
- pip
- Clone the repository
git clone github.com/Ai35/Real-time-chat.git
- Create a virtual environment and activate it
python -m venv venv
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Set up the database
python manage.py makemigrations
python manage.py migrate
- Create a superuser (admin)
python manage.py createsuperuser
- Collect static
python manage.py collectstatic
- Run the server
python run_daphne.py
- Open the application in your web browser
- Log in with your superuser credentials
- Create a new chat room or join an existing one
- Start chatting with other users in real-time
Contributions are welcome! Please open an issue or submit a pull request.
- Django Channels documentation
- Channels Redis documentation
- Django documentation
- Python documentation