Skip to content

prague-estate/publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

149 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prague Estate publisher

tests linters

Pre-requirements

Local setup

git clone git@github.com:prague-estate/publisher.git prague-publisher
cd prague-publisher
python3.14 -m venv venv
source venv/bin/activate
pip install -U poetry pip setuptools
poetry config virtualenvs.create false --local
poetry install

Local run tests

pytest --cov=publisher

Local run linters

ruff check
flake8 publisher/
mypy publisher/

Run publisher for subs

python -m publisher.publisher

Run publisher for channels

python -m publisher.channel_publisher

Run subscription downgrade session

python -m publisher.subs_downgrade

Run bot service

python -m publisher.bot

Run webhook API

gunicorn publisher.webapp:app -b 127.0.0.1:9002 -w 2
curl -X POST "127.0.0.1:9002/webhook"

Host setup

add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt install -y software-properties-common python3.14 python3.14-dev python3.14-venv 
apt install -y libpq-dev gcc python3-pip redis supervisor
apt-get upgrade
adduser publisher

vi /etc/logrotate.d/prague-publisher

groupadd supervisor
usermod -a -G supervisor root
usermod -a -G supervisor publisher

vi /etc/supervisor/supervisord.conf  # change chown and chmod params
vi /etc/supervisor/conf.d/publisher.conf
service supervisor restart

About

Prague Real Estate Search Engine

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages