This project is a real-time Twitter-like application built with Python and JavaScript. It uses Flask, Flask-SocketIO on the server side and Socket.IO on the client side to enable real-time communication between the server and the client.
- Real-time message posting
- Real-time message updating
- Real-time message deletion
- Real-time message commenting
- Real-time message liking and unliking
- User avatar and username display
- Clone this repository:
git clone https://github.com/cobaltCorsair/mybb_twitter.git - Navigate to the project directory:
cd mybb_twitter - Install the required packages:
pip install -r requirements.txt
- Start the server:
python server.py - Open
client.htmlin your web browser.
The server provides several endpoints for real-time communication:
new user: Handles new user creation.create message: Handles new message creation.delete message: Handles message deletion.update message: Handles message updating.create comment: Handles new comment creation.delete comment: Handles comment deletion.like message: Handles message liking.remove like message: Handles message unliking.
The client is a simple HTML page that uses Socket.IO to communicate with the server in real-time. It provides a user interface for creating, updating, deleting, commenting on, liking, and unliking messages.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
If you want to contact me you can reach me at cobaltcorsair@ya.ru.