A modern real-time chat application built with Django, Channels, and WebSocket technology. Features include user authentication, real-time messaging, message moderation, and Docker support.
- Real-time messaging using WebSocket connections
- User authentication (register/login)
- Chat rooms
- Automatic message moderation system using NLTK
- Asynchronous task processing with Celery
- Docker support for development and production
- Django - Web framework
- Django Channels - WebSocket handling
- Celery - Background task processing
- Docker - Containerization
- PostgreSQL - Database
- Redis - Websocket and Message Queue broker
- Clone the repository
- Run the development environment:
docker compose --env-file .env.dev -f compose.dev.yaml up --build
- Access the application at http://localhost:8000
- Clone the repository
- Run the production environment:
defang config set DJANGO_SECRET_KEY defang config set POSTGRES_PASSWORD defang compose up
- Clone the repository
- Configure your cloud provider (i.e.
export DEFANG_PROVIDER=aws,gcp,etc.
, add credentials, etc.) - Run the production environment:
export DEFANG_PROVIDER=<your-provider-of-choice> defang config set DJANGO_SECRET_KEY defang config set POSTGRES_PASSWORD defang compose up