This project is a Django-based real-time chat application with user authentication, chat functionality, and a user-friendly interface.
- User registration and login
- Real-time chat functionality
- Modern and responsive user interface
- Built with Django and WebSockets
Make sure you have the following installed:
- Python 3.8+
- pip (Python package manager)
- Virtualenv (optional but recommended)
- SQLite (comes pre-installed with Python)
Follow these steps to set up and run the project locally.
git clone <repository_url>
cd chat_appIt is recommended to use a virtual environment to avoid conflicts.
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On WindowsInstall the required Python libraries using the requirements.txt file.
pip install -r requirements.txtSet up the database by applying the migrations.
python manage.py makemigrations
python manage.py migrateStart the Django development server.
python manage.py runserverThe application will be accessible at http://127.0.0.1:8000/.
- Register a User: Navigate to the registration page and create a new account.
- Login: Use your credentials to log in.
- Start Chatting: Access the chat interface to begin chatting with other users.
chat_app/
├── chat_app/ # Project-level settings and configuration
│ ├── settings.py # Main settings file
│ ├── urls.py # URL routing
│ ├── asgi.py # ASGI configuration for WebSocket support
│ └── wsgi.py # WSGI configuration for deployment
├── users/ # Django app for user management and chat
│ ├── templates/ # HTML templates
│ ├── static/ # CSS and JavaScript files
│ ├── views.py # Views for handling logic
│ └── models.py # Database models
├── manage.py # Entry point for Django commands
├── requirements.txt # Python dependencies
└── db.sqlite3 # SQLite database file