/ITUMIK_backend

MQTT-Consumer in Python Client for each desk

Primary LanguagePythonApache License 2.0Apache-2.0

ITUMIK_backend

unit test examples: Test client creation and requests https://github.com/mongodb-developer/pymongo-fastapi-crud/blob/main/test_books_crud.py

conda create -n <environment_name> python=3.10 pip -y conda activate <environment_name> pip install -r requirements.txt -y cd main python3 debug.py

for windows: conda create -n py310 python=3.10 ; conda activate py310 ; pip install -r requirements.txt ; cd main ; python3 debug.py

docker build -f DockerFile -t mik_backend . && docker run --rm -i -t -p 8008:8008 mik_backend TODO:

  • replace error messages with custom ones
  • example: raise CustomError(ErrorCodes.mik_ec_001, ErrorMessages.mik_ec_001_MESSAGE, 422, parameters=[Configs.DB_USERNAME, "python_client"])

*Hata alsa da örneğin invalid json dinlemeye devam etmeli benzer yapı on_message'de yapıldı mesaj yanlış olsa da dinlemeye devam ediyor kullanıcıyı bilgilendirmek için log atılıyor

JENKINS JENKINS'teki user'ın çalıştığı makinede sudo yetkisi olmalı. echo "jenkins ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers