Skip to content

Latest commit

 

History

History
69 lines (38 loc) · 1.22 KB

README.md

File metadata and controls

69 lines (38 loc) · 1.22 KB

Steem Notifier

Send notifications for various Steem events.

Requirements

  • Python 3.5+
  • MongoDB (on dev machine)
  • Docker and Docker Compose (on production machine)

Run on development machine

Make sure you have a MongoDB instance running on your dev machine.

  1. Create and activate new virtual env:

     python3 -m venv venv
     . venv/bin/activate
    
  2. Install requirements:

     pip install -r requirements.txt
    
  3. Copy .env.example to .env and fill in the values:

     MONGO_URI=
     TELEGRAM_TOKEN=
     MAILGUN_DOMAIN_NAME=
     MAILGUN_API_KEY=
     STEEM_WALLET=
    
  4. Run the app:

     python src/app.py
    
  5. Open http://localhost:5000 using your browser.

Run on production machine

Make sure you have Docker and Docker Compose installed on the server.

  1. Copy .env.example to .env and fill in the values.

  2. Build the containers:

     docker-compose build
    
  3. Run the containers:

     docker-compose up -d
    

Unit tests

On development machine, run the following command:

  python -m unittest -b

to run the unit tests.