Custom surf alerts
Surfmon is a little like IFTTT (If This Then That) for surfing. I wanted a tool for building my own custom surf alerts so that I don't have to monitor the charts. If you've thought "I would love an email for the days that the swell direction is between A and B degrees, the period is C and the swell height is D" then Surfmon might be for you!
You'll need:
- Ruby 3.1.0
- PostgreSQL (I'm using 14)
Then you can run to setup:
bundle
bin/rails db:setup
Then you can start your dev environment with:
bin/rails s
Test things that are important, confusing or complex (or any combination of those). Nothing near 100% coverage is required.
bin/rails t
Rails system tests are a PITA to keep working locally. You'll need the latest chromedriver (from brew
) and selenium-webdriver
gem (in this app but just needs to be kept up to date) for it to work with your chrome. You're probably best to have multiple versions of chrome for this (one that you don't upgrade for testing and one that you do for personal).
bin/rails t:system