LogBuddy – track fitness, food, weight, and periods

1 month ago 1

LogBuddy is a simple app that helps you log your workouts, food consumption, weight and period. It has a Golang backend, with an Ionic frontend, using PostgreSQL as its database.

Setup the project:

# write some backend serets cat > .env << EOF JWT_SECRET=supersecret POSTGRES_USER=postgres POSTGRES_PASSWORD=supersecret POSTGRES_HOSTNAME=db # same as service DB_PORT=5432 POSTGRES_DB=db APP_PORT=8100 EOF # write some frontend secrets cat > frontend/.env << EOF BACKEND_API_URL=<BACKEND ADDRESS>:8100 USER_SUPPORT_EMAIL=<YOUR EMAIL> EOF

Run locally:

cd path/to/logbuddy sudo docker compose up

Build the frontend (android)

Debug build:

cd path/to/logbuddy/frontend bun run build # build once with live reloading bunx cap run android -l # serve the frontend exposed on the local network ionic serve --host=0.0.0.0 --port=3000

Production build:

cd path/to/logbuddy/frontend bun run build bunx cap sync android cd android && ./gradlew assembleDebug && cd .. adb install -r android/app/build/outputs/apk/debug/app-debug.apk
Read Entire Article