/rlt-test

RLT Test Task

Primary LanguagePython

RLT Test Task

Salaries aggregation Telegram bot, implemented using mongodb and aiogram

Running:

You can run this bot either locally or by using Docker container

Running via Docker container

  1. Clone this repository

  2. Build Docker image
    docker build -t rlt-test .

  3. Run it!
    docker run -d --name=rlt-test-container -p 5000:5000 -e TG_BOT_TOKEN="YOUR_TG_BOT_TOKEN_HERE" rlt-test

Running locally

  1. Clone this repository

  2. Install necessary requirements
    pip install -r requirements.txt

  3. Export dumped database
    mongorestore --host=localhost --port=27017 ./db/sample_collection.bson

  4. Configure bot by basically changing Telegram bot token in config.json file

    {
      ...
      "tg_bot_token": "YOUR_TG_BOT_TOKEN_HERE"
    }
    
  5. Run it!
    python3 app.py