This is a Python-based local chat application that uses TCP sockets to allow users to chat in pairs. The application is structured into two main packages: client
and server
. The client package implements the Observer pattern, and the application uses the Peewee ORM for database management and Colorama for colored console outputs.
- Features
- Installation
- Architecture
- Code Structure
- Development Guidelines
- Future Features
- Contributing
- License
- Local Chat: Users can chat with each other locally using TCP sockets.
- Client-Server Architecture: The application follows a client-server model where multiple clients can connect to a central server.
- Observer Pattern: The client package is implemented using the Observer pattern, promoting better design and separation of concerns.
- Peewee ORM: Used for managing the database and storing chat logs or user information.
- Colorama: Used to add color to the console output, making the chat more user-friendly.
To set up the chat application, follow these steps.
- Python 3.x: Ensure Python is installed on your system. You can download it from python.org.
- PyCharm: (Optional but recommended) Use PyCharm IDE for better development experience. You can download it from jetbrains.com.
Start by cloning the GitHub repository:
git https://github.com/elliot31878/chat_application.git
cd chat_application
cd server
pip install -r requirements.txt