项目作者: jfisbein

项目描述 :
Very simple app to send email when a new operation occurs to a defined stellar account.
高级语言: Java
项目地址: git://github.com/jfisbein/stellar-notifier.git
创建时间: 2018-01-30T15:42:59Z
项目社区:https://github.com/jfisbein/stellar-notifier

开源协议:

下载


stellar-notifier

Quality Gate Status

Very simple app to send email notifications when a new payment occurs to a defined Stellar account.

Usage

Option A - Run as a docker container

  1. # Example using gmail
  2. docker run --detach --name stellar-notifier --restart unless-stopped \
  3. -e AccountId=GXXXXXXXXXXXXXXXXXXXXXXXXXX \
  4. -e mail.smtp.auth=true \
  5. -e mail.smtp.starttls.enable=true \
  6. -e mail.smtp.host=smtp.gmail.com \
  7. -e mail.smtp.port=587 \
  8. -e mail.user=you@gmail.com \
  9. -e mail.password='yourpassword' \
  10. -e mail.recipient=alertsrecipient@yahoo.com \
  11. jfisbein/stellar-notifier

Option B - Compile and run directly in your computer

download the repository

  1. git clone https://github.com/jfisbein/stellar-notifier.git
  2. cd stellar-notifier

Compile the project

  1. mvn clean package

Set environment values

  1. # Example using gmail
  2. export AccountId=GXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  3. export mail.smtp.auth=true
  4. export mail.smtp.starttls.enable=true
  5. export mail.smtp.host=smtp.gmail.com
  6. export mail.smtp.port=587
  7. export mail.user=you@gmail.com
  8. export mail.password=yourpassword
  9. export mail.recipient=alertsrecipient@yahoo.com

Run it

  1. java -classpath target/dependency/*:$(ls -1 /target/stellar-notifier-*.jar | head -n1) com.sputnik.stellar.Launcher