Switched my focused a bit to the backend and website for the last couple of weeks. I used TailwindCSS (with TailwindUI) for both. First time I use Tailwind but I love it already. Speeds up the styling a lot and has many good looking defaults.
I'm using Plausible for the analytics, seems so much easier to use than Google Analytics and I like their open dashboards.
Syncing from the watch to the web is done via http-requests directly from the watch to the server. I'm using websockets to keep the dashboard in sync with the watch at all time. Probably an unnecessary since most people don't look at their laptops while working out... But hey, why not over engineer when you can.
My approach for connecting a watch to the web app is via a 6-digit code generated on the server. When setting up an account, the user is prompted to enter this code on the watch so that I can connect a watch to a specific account.
The new version of the watch app with sign-in och syncing functionality is currently in review for app store and should hopefully be out this week.
I decided to keep the web dashboard in closed beta for now, but just sign up for the beta on the website and I'll set up an account if anyone is curious to try it out.
My next step is to implement some kind of payments/subscriptions for getting access to the web dashboard. I would preferrably like to sell the it via subscriptions in the app, but that doesn't seem to be available for watch-only apps yet.