mjonasz / beer-checker

simple app to monitor rare beers sales with email notifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BeerChecker

Simple app to monitor rare beers sales with email notifications

Usage

It is possible to run this app locally or to release for standalone usage on remote server.

Run locally

iex -S mix

Run tests

mix test

Release with distillery

export MIX_ENV=prod # or dev
mix release # create binaries
# upload _build/prod/rel/beer_checker/releases/<version>/beer_checker.tar.gz to server and untar
# on server
export REPLACE_OS_VARS=true # better add to some ~/.profile
beer_checker/bin/beer_checker start # run in background

Logs can be found in ~/beer_check.log (remember to set REPLACE_OS_VARS environment variable)

TODO

  • extract from and to email fields to config (secret?)
  • allow multiple email recipients
  • systemd (start/stop/etc)
  • ansible (building and deployment)
  • better tests
  • add more beers to check

About

simple app to monitor rare beers sales with email notifications


Languages

Language:Elixir 98.1%Language:Shell 1.9%