icostan / gasherbrum2

Weather and Facebook notifications for Gasherbrum2 Expedition 2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Weather forecast notification and Facebook integration for Gasherbrum2 2021 Expediation.

Dependencies

For Arch Linux or use your favorite package manager...

Ruby

% pacman -S ruby
% ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]

Heroku

% rua install heroku-cli-bin

App dependencies

% bundle install
% rails --version
Rails 6.1.3.2

Configuration

% echo EMAIL=#### > .env
% echo PASS=#### > .env

Database initialization

% rails db:create
% rails db:migrate
% rails db:seed

Run app

% foreman start

Open app

% open http://127.0.0.1:5000

Services (jobs, forecast engines, etc.)

mountain-forecast.com provider

The first/default weather forecast provider...

forecast job

It fetches forecast data from configured forecast provider.

% rails gasherbrum2:forecast

notification job

Sends out all email notifications with latest forecast data.

% rails gasherbrum2:notifications

Twilio

Facebook

Google

Run tests

% rails test

Deployment instructions

  • Automated CI enabled on staging, commit the code to githhub and you are all set.
  • Manual promotion to production using Heroku dashboard.

Production environment

get forecast data

% heroku run rails gasherbrum2:forecast -a gasherbrum2-production

send out notifications

% heroku run rails gasherbrum2:notifications -a gasherbrum2-production

About

Weather and Facebook notifications for Gasherbrum2 Expedition 2021


Languages

Language:Ruby 61.9%Language:HTML 31.9%Language:JavaScript 3.5%Language:SCSS 1.9%Language:CSS 0.7%