This is a realtime chat application built with Django and WebSockets. The application allows users to join chat rooms and communicate in real-time.
- Realtime messaging using WebSockets
- Multiple chat rooms
- User authentication
- CSRF protection
-
Clone the repository:
git clone https://github.com/yourusername/realtime-chat-app.git cd realtime-chat-app/djangochat
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Apply the migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
- Open your browser and go to
http://127.0.0.1:8000/
. - Log in with your superuser credentials.
- Create a new chat room.
- Join the chat room and start messaging.
You can access the deployed application at https://realtime-chat-app-8oy9.onrender.com/.