Live data from Hacker News

Show HN: Workout Tracker – self-hosted, single binary web application

github.com

1–10 of 102 posts

Show HN: Workout Tracker – self-hosted, single binary web application

#1
I tried some web tools to track my workouts (specifically, running); some (like FitTrackee) came close, but I always found annoyances. So I decided to build my own. Specifically geared towards distance-based workouts, such as walking, running or cycling.

Show HN: Workout Tracker – self-hosted, single binary web application
github.com

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#3
This looks truly excellent, nice work! I've been using RideWithGPS, which is a great tool, but doesn't scratch my "self-host everything, own my own data" itch, so I'll definitely be checking this out. I've built (and use daily) my own barebones workout tracker [1], but it's for non-distance-based workouts (i.e. rep-based stuff/lifts), so this compliments that nicely.

[1] https://github.com/bcspragu/stronk

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#4

nice. How do you track teh distance (walked or running?)

Without diving in too deeply, it looks like they use a package called `gpxgo` [1], which has some code for calculating the moving distance of a given GPX file [2].

[1] https://github.com/tkrajina/gpxgo

[2] https://github.com/tkrajina/gpxgo/blob/5e7c336e94dac3583a07c...

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#8
post #6

I love the minor movement toward self-hosted web apps. I wish they were easy enough to setup as installing an app on Android or iPhone.

Hole in the market? Maybe a NAS-type system for self host? Something a bit stronger than a raspberry

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#9
This is a great looking project. The combo of single binary Go-lang and the ability to package assets like css, js and html makes this a killed multi platform distributable one click run.

It might be an interesting experiment to have the UI be installable as PWA and thereby not need the electron stack to achieve the common functionality offered by these apps.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#10
post #6

I love the minor movement toward self-hosted web apps. I wish they were easy enough to setup as installing an app on Android or iPhone.

While not as easy as an appstore, the modern Docker ecosystem IMO has made self hosting web apps at home super cheap/easy.

Use your old PC, a Raspberry Pi, an EC2 instance, whatever you like, a single small Docker Compose file with Watchtower for auto-updating the container image when new one published etc. I've got self-hosted services that have ran untouched for years this way at home from a handful of lines of YML. Docker Compose will also take care of restarting the service on reboot/powercut if thats a concern.

Given the ubiquity of container images, you can run largely any web application this way and the container image likely already exists - this project also has a Dockerfile and would run fine this way too.

Post reply on HN