/river-guru

Visualise water levels, tide times and other interesting info for fishermen on rivers in Ireland, mainly around Cork.

Primary LanguageJavaScript

River-Guru

Visualise water levels, tides and other interesting data for fishermen on the river lee in Cork, Ireland.

TO DO

Visualise Average Hourly Flow At Inniscarra Dam

  • automatically download latest ESB headrace dam readings from here http://esbhydro.ie/Lee/04-Inniscarra-Flow.pdf
  • extrate the data from the pdf and get in into machine readable format
  • store it to postgres
  • API to return latest 24 hours worth of readings
  • build skeleton vue.js app
  • pipelines to deploy app / Heroku
  • CRON task / schedulled API to refresh data twice an hour

TO do List

  • custom domain hosting
  • cloudflare SSL certs
  • bundle optimisations - add WebPack
  • migrate from Heroku to AWS Beanstalk
  • serve static webapp from S3
  • treeshake express app to reduce AMI size to run npm install
  • upgrade to Vuetify 3
  • find a decent API for moon cycles in Ireland
  • push notifications when dam is on at inniscarra

Installing Locally

DB schema

npm install --save-dev sequelize-cli
sequelize db:migrate
sequelize db:seed:all

Running the app

npm run start

Deploying DB schema and seed data via Heroku CLI

heroku addons:create heroku-postgresql:hobby-dev
npm install -g sequelize-cli
heroku run bash
sequelize db:migrate
sequelize db:seed:all
heroku restart

Digital Ocean Issues request and requrest promise are deprecated move to https://www.npmjs.com/package/node-fetch instead

buidl