A real-time chat application built with Flask and WebSocket, featuring a dark theme and random Chinese usernames.
- Real-time messaging using WebSocket
- Random Chinese username assignment
- Message history storage
- Dark theme UI
- Live logging system
- Multiple views (Chat, Settings, About, Logs)
- Auto-reconnect mechanism
- Message sanitization
- Loading animations
- Responsive design
- Python 3.7+
- SQLite3
- Clone the repository:
git clone https://github.com/CNMengHan/CialloSecurityChat.git- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtThe application uses several configuration settings that can be modified in app.py:
APPLICATION_ROOT: Set to '/ciallosecurity'SECRET_KEY: Session secret keyPERMANENT_SESSION_LIFETIME: Session lifetime (24 hours by default)- Default port: 43816
- Start the server:
python app.py- Access the application at:
http://localhost:43816/ciallosecurity/
- Real-time message delivery using Socket.IO
- Message length limit (500 characters)
- Automatic scrolling to latest messages
- Unique color assignment for each username
- XSS protection
- Content Security Policy (CSP)
- Session management
- Proxy support
- Message sanitization
- Real-time log viewing
- Log refresh functionality
- Log clearing option
- Timestamp and level-based logging
- Dark theme
- Loading animations
- Custom scrollbar design
- Responsive layout
- Multiple view tabs
/ciallosecurity/- Main chat interface/ciallosecurity/logs- Log viewing endpoint/ciallosecurity/socket.io- WebSocket endpoint
Contributions are welcome! Please feel free to submit a Pull Request.