A real-time chat application built with Django and WebSockets, enabling instant messaging between multiple users in different chat rooms.
- Real-time messaging using WebSockets
- Multiple chat rooms
- Clean and responsive UI
- User authentication
- Message history
- Room-based conversations
- Django 5.x
- Channels (WebSockets)
- HTML/CSS
- JavaScript
- SQLite3
- Python 3.10+
- Virtual Environment
- Clone the repository
git clone https://github.com/yourusername/django-chat-app.git
cd django-chat-app
- Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Apply migrations
python manage.py migrate
- Run the development server
python manage.py runserver
django-chat-app/
├── chat/ # Main application directory
├── config/ # Project configuration
├── static/ # Static files (CSS, JS)
├── templates/ # HTML templates
└── manage.py # Django management script
- Navigate to
http://localhost:8000
- Provide a username and a new chat room or join an existing one
- Start chatting in real-time!
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For more detailed information, please refer to the Django Girls Workshop Guide
⭐️ Star this repository if you find it helpful!