This repository contains a real-time chat application built with Django Channels and Docker Compose. It includes a Django server, a PostgreSQL database, and a Redis instance to enable real-time communication.
Make sure you have Docker and Docker Compose installed in your system:
-
Clone this repository to your local machine:
git clone https://github.com/ericknavarro97/realtime-django-chat.git cd realtime-django-chat
-
Build and start the Docker containers with Django server, PostgreSQL database, and Redis:
docker compose up --build
-
Access the Django application in your web browser at http://localhost:8000.
To create a superuser in Django from Docker Compose, follow the next steps:
-
Open a terminal and run the following command to create a superuser:
docker compose exec django python manage.py createsuperuser
With just a simple sign-up/login, you can dive into the world of seamless communication. Create a new chat and connect with people instantly to start chatting!
- Improve cleaning cache.
- Delete chats (Only admin users).
- Add more message errors.
- Set
.env
file for environment variables.