Skip to content

ablogo/WebSocketServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocketServer

WebSocket server created for a 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 the next repository.

When connecting to the server, a token must be sent, which is obtained from the authentication microservice.

All logs are sent to a MongoDB database.

Requirements

  • Python 3.12+
  • MongoDB (local server or remote server)

Installing

  1. Create a virtual environment
python -m venv .venv
  1. Activate it (Linux, macOS)
source .venv/bin/activate

Activate it (Windows PowerShell)

.venv\Scripts\Activate.ps1
  1. Install dependencies
pip install -r requirements.txt
  1. Set configuration file (.env)

The address and port of the websocket server, the connection string of the database and other configurations must be included

  1. Run it locally
python main.py
  1. Open the next url in a browser to see the Swagger UI
h

About

WebSocket server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published