ZrauxChatApp is a real-time messaging application built with Django, Redis, Celery, and WebSocket. It supports real-time communication, duo chats.
- Real-time messaging via WebSocket
- Duo chats
- Background tasks using Celery
- Emoji support
- Responsive design
Check out the live demo of ZrauxChatApp here: ZrauxChatApp Live Demo
To run ZrauxChatApp locally, follow these steps:
git clone https://github.com/zooooomiong/ZrauxChatApp.gitcd ZrauxChatAppIt's recommended to use a virtual environment. First, set up the virtual environment:
python3 -m venv venv
source venv/bin/activateThen, install the required dependencies from the requirements.txt file:
pip install -r requirements.txtIf you don't have Docker installed, follow this guide to install it. Once Docker is installed, run Redis on port 6379:
docker run -d -p 6379:6379 redisCreate a .env file in the project root and add the necessary environment variables like Redis URL, secret keys, etc.
touch .envYou can structure the .env file like this:
SECRET_KEY=your_django_secret_key
USERNAME_=you_email_or_email_service_username
PASSWORD=you_email_dev_key_or_service_password
Run the following command to apply database migrations:
python manage.py makemigrationspython manage.py migrateStart the Celery worker with the gevent pool:
celery -A chat_proj worker -P geventThis will enable background tasks.
Start the Django development server:
python manage.py runserverThe app should now be running at:
http://localhost:8000