Parser, that periodically checks new events on standupstore.ru and posts notifications to telegram channel.
- Install git, docker and docker-compose
- Clone repo
git clone git@github.com:dvabidonamoloka/standupstoreparser.git
- Add settings.py to
susp/
folder by the following template:Note, that telegram bot has to be the admin of the channelTOKEN = 'your_telegram_bot_token' CHAT_ID = '@your_telegram_channel_name' EXCEPTIONS_EMAIL_TO = 'email' # email to which you will receive error logs EXCEPTIONS_EMAIL_FROM = 'email' # email from which error logs will be sent SMPT_SERVER = 'smpt_server_adress' SMPT_PORT = 'smpt_server_port' SMPT_PASSWORD = 'password of email from which error logs will be sent'
- Run containers with docker-compose
docker-compose up -d
Running prod version
docker-compose up -d
Running dev version, which has port forwarding
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
Rebuild app image before running container:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --force-recreate
Running only mongo container
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d mongo