Simple app to monitor rare beers sales with email notifications
It is possible to run this app locally or to release for standalone usage on remote server.
iex -S mix
mix test
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)
- 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