Skip to content

About

Tide Catcher with Next.js & React, on Vercel and Google Cloud Run

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

What

Web app to quickly display upcoming high & low tide data from nearest NOAA tide stations.

Where

Automated deploys at Google Cloud Run and Vercel, triggered by changes to the main branch at GitHub

How

  • Next.js backend serves both a React frontend and a REST/JSON API.
  • Fetches tide info from various APIs from NOAA Tides & Currents

API

The front-end fetches it's data from a thin wrapper over the NOAA Web Services APIs.

I'm using a wrapper because this front-end originally pulled data from my old Flask back-end so that I couple spin this one up quickly. That back-end was intended to cache results per station along with computing nearest stations, until WorldTides changed their API to only do the nearest search behind the scenes. They also virtually killed their free-tier: originally 1000 calls per month per free account, now 100 total per free account.

The NOAA data is public and free (and fast!), though I still plan on doing caching just to save on both outgoing bandwidth and the latency of making extra fetches.

More info and API Spec

TODO

  • Backend
  • Frontend
    • Specify the station to display data from, instead of using GPS to find the nearest.
    • Offline mode: pull 7 days of data at a time, will only need internet when that data is stale.
    • Favorite stations: Keep a list of nearby stations instead of relying on GPS data.

About

Tide Catcher with Next.js & React, on Vercel and Google Cloud Run

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages