Chatpy is a simple chat application built with Django. It allows users to register, log in, join chat groups, and send messages in real-time.
- User Registration and Authentication
- Real-time messaging using WebSockets
- Join and create chat groups
- Responsive UI built with Tailwind CSS
- Python 3.8+
- Django 3.2+
- SQLite (default database)
-
Clone the repository:
git clone https://github.com/yourusername/chatpy.git cd chatpy
-
Create a virtual environment:
python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python3 manage.py migrate
-
Run the development server:
python3 manage.py runserver
-
Open your browser and visit:
http://127.0.0.1:8000/
- Register a new user at
/register/
- Log in at
/login/
- Join or create chat groups after logging in.
- Each group has a unique URL where you can chat with other members.
- Type your message in the input field and press Enter or click the "Send" button.
To run the tests, use the following command:
python3 manage.py test