WebSocket server created this chat application.
This project must be used in conjunction with at least two others, one that is an authentication microservice that manage the users, and another microservice that manages chat functions.
It is necessary to develop a WebSocket client, or you can use the one found in this repository.
When connecting to the server, a token must be sent, which is obtained from this authentication microservice.
All logs are sent to a MongoDB database.
- Python 3.12+
- MongoDB database
- Create a virtual environment
python -m venv .venv- Activate it (Linux, macOS)
source .venv/bin/activate- Activate it (Windows PowerShell)
.venv\Scripts\Activate.ps1- Install dependencies
pip install -r requirements.txt- Set configuration file (.env)
The address and port of the websocket server, the connection string of the database and other configurations must be included
- Run it locally
python main.py- Use this websocket client to connect and test the websocket server