I built a full-stack workout tracker with Claude Code: real accounts, a Postgres database, routines, history and progress charts. Then I put it live on my own server and added a new feature to the live app from my phone, with my laptop closed. Below is every step and every prompt I used, so you can copy the workflow for your own app.

Why a workout tracker is worth cloning

The app I used as a model is Hevy. Its homepage says it is "loved by 10+ million athletes". In November 2024, Starter Story reported it was making around $160,000 a month. Their breakdown also says Hevy was started in 2019 by a small team, with about 13 employees.

A proper workout tracker is a lot harder than it looks. You need real accounts, a database that never loses a single set, reusable routines, history, and progress charts that actually mean something. That makes it a good test for building a real full-stack app with AI.

Apps like Hevy do one job really well. You open them between sets, tap in your reps and weight, and get back to lifting. Over the weeks, they show you whether you're actually getting stronger. They also meet three criteria that most viral apps share:

  1. It solves a common, frustrating problem. Most people who train have no idea what they lifted last week, so they guess, and their progress stalls.
  2. It keeps things simple. The whole value fits in three words: log, repeat, improve.
  3. It's naturally shareable. People screenshot every finished workout and every new personal best and send it to their gym friends. That's free marketing.

Apps like this are usually built by small teams, so all you need to beat them is a slightly better app for your own niche. But the real lesson here isn't fitness. It's the full workflow: build the app, put it live, and keep improving it from anywhere, even your phone.

Step 1: Write the spec before any code

The biggest mistake beginners make is opening Claude Code and typing “build me a workout app”. That's not how you do it. Before you generate a single screen, you need a proper spec.

Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.

Paid

I started in an empty project folder called Workout App, in the Claude desktop app running Claude Code with Opus 5.5. I asked it to plan first and not write any code yet. This prompt asks Claude to write a full build spec and wait for my approval:

code
You are a senior full-stack engineer and product designer. Do NOT write any code yet. Create a complete build spec in SPEC.md for a mobile-first workout tracker web app.
1. Accounts: sign up, sign in and log out with email and password. Hash passwords. Keep sessions in secure httpOnly cookies. Every database query must be limited to the logged-in user.
2. Exercise logging: pick an exercise from a searchable list (users can add custom exercises), then log sets with reps, weight (kg or lb) and date. Any set can be edited or deleted. Pre-fill each new set with the previous set's values.
3. Routines: create reusable workouts such as Push, Pull and Legs, each with an ordered list of exercises. Start a workout from a routine with one tap.
4. History and progress: a list of recent workouts, a weekly streak/consistency indicator, and a chart of top-set weight over time for each exercise.
5. Mobile and desktop: big, thumb-friendly controls for fast entry between sets on phones, and a clear dashboard layout on desktop.
6. Stack: Next.js with TypeScript for the UI and API routes, PostgreSQL with Prisma, and Docker Compose with three services (app, database, and Caddy for automatic HTTPS). Database data goes in a named volume. Secrets live only in environment variables, never in the code.
7. Include: the data model, API routes, screen list, a test plan, and a seed script for a clearly labelled demo account with sample data.
List any open questions at the end. Wait for my approval before building.

After about half a minute of thinking, Claude came back with a full plan in SPEC.md. It covers the database tables, about 35 API routes and 15 screens, with separate layouts for phone and desktop. The security section is detailed:

  • Passwords are hashed with Argon2id.
  • Sessions use an HttpOnly, Secure, SameSite=Lax cookie, and the database stores only a SHA-256 hash of the session token.
  • Sign-in is rate limited, and every request that changes data gets an origin check.
  • Every table has a userId column, only one folder of code may talk to the database, and a test suite checks that user A can never touch user B's records.

The spec also includes the Prisma data model, how a new set is pre-filled, how the chart picks the top set, how weekly streaks are counted in the user's own timezone, a Docker Compose setup where the database has no public port, a seed script for a demo account and a full test plan.

At the end it listed 14 open questions, such as whether forgotten passwords should be reset by email, or whether sets should save without signal and sync later. This planning step matters a lot. If you skip it, your app will most likely break the moment two different people start using it.

Step 2: The first build

I approved the plan with the "Approve, start building" button and let Claude Code work. It made a checklist (scaffold, schema, auth, API routes, UI, seed and Docker, tests, browser check) and worked through it.

When it finished, the app was running at localhost:3000. The type check was clean and all 102 tests passed, and Claude listed a few bugs its own tests had caught and fixed. It was also honest about one gap: it couldn't test the Docker setup, because Docker wasn't installed on my laptop.

I signed in with the demo account, and the dashboard was already full of sample data: a four-week streak, 33 workouts, 555 sets and a list of new personal records, such as a 115 kg back squat. A yellow banner clearly labels it as sample data. Under Routines, there's a Push day with bench press, overhead press and triceps pushdowns, next to Pull and Legs. History groups every session by week, and the progress page draws a top-set chart for each exercise. There's also a searchable exercise library with filters for chest, back, arms, core and more.

Then I checked phone size with Chrome DevTools' iPhone emulation. The layout switches to a bottom tab bar, and every page works: Today, Routines, History, Progress and Settings.

To be honest, though, this first version works, but it doesn't look stunning yet.

Step 3: Make it look premium

Design builds trust in the first three seconds. If your app looks cheap, people assume it works cheaply too. If I'm going to publish this app, it has to look premium.

So I gave Claude a clear visual direction in one go, using the UI UX Pro Max skill.

Design-intelligence skill that searches UI styles, palettes, font pairings and UX rules to generate a design system for your project.

Free plan + paidOpen source

This prompt redesigns every screen for use between sets and writes the rules into a design system file:

code
Redesign the UI using ui-ux-pro-max skill for use in the gym between sets. Direction: dark theme, one bold accent colour, large type for reps and weight, tap targets at least 48px, a sticky “Next set” button at the bottom of the screen on mobile, and a clean dashboard grid on desktop with history and the progress chart side by side. Write these rules into design-system.md and apply them to every screen.

The difference is night and day. There's one bold orange accent, big bold numbers, and a clean dashboard with my bench press top-set chart right on the home screen.

Next, I had Claude Code commit the project and publish it to a private GitHub repo. That repo is what we deploy from in the next step.

But there was still a problem. The whole app only lived on my laptop, and I still needed the laptop to make changes. That's not good enough once the app launches, because some changes may be urgent and need to happen while I'm away from my laptop.

Step 4: Put it live on a Hostinger VPS

I used a Hostinger VPS so my laptop doesn't have to stay on 24/7 and I can keep developing the app with Claude from my phone.

AI Builder that turns a description into a website, web app or game, with hosting, a domain and email included.

FeaturedNewPaid

A VPS is your own private server in a data center. It stays online when my laptop is closed, I control exactly what runs on it, and it supports Docker, which is how this app is packaged.

Picking the plan

I went to hostinger.com/createwithai10 and picked the KVM 2 plan. It gives you 2 virtual CPU cores, 8 GB of RAM, 100 GB of NVMe storage and 8 TB of bandwidth. That's plenty for the app, the database and Claude Code running side by side. Hostinger's Black Friday sale was running when I recorded this.

After adding the plan to the cart, you can choose the billing period. I picked 24 months because it gave the best value, but choose whatever period suits you. For the location, pick the data center closest to your users, so the app is fast for them. The checkout also has an option to install Claude Code automatically, which is what makes phone control possible later. Then I applied the coupon code CREATEWITHAI10 for 10% off, and the discount showed up right away.

Setting up the server and a free domain

In hPanel there's a button to set up the VPS, and below it a button to claim a free domain. I clicked Set up on my new KVM 2, switched the location to Boston 2 in the United States, and picked AlmaLinux 10 as the operating system. Then I set a root password and ticked Docker Manager.

Setup takes a few minutes. When it was done, I claimed a free domain for the VPS, liftbig.io, through Hostinger and registered it with my details.

Deploying with Docker Manager

From the VPS overview, I opened Docker Manager in the left sidebar. This is where the app runs, as three containers: one for the app, one for the database, and one (Caddy) that handles HTTPS.

The deploy itself is just a few clicks:

  1. Click Compose.
  2. Choose Compose from URL.
  3. Paste the link to the GitHub repo Claude Code committed earlier.
  4. Give the project a name and hit Deploy.

Docker Manager pulls everything and starts the containers. From then on, I can watch their status and logs right there, without opening a terminal. And with that, the app was live.

Connecting the Hostinger MCP

Hostinger also has an official MCP server. An MCP is a plug that lets Claude Code talk directly to another service. I connected it with one command and signed in with my Hostinger account:

code
claude mcp add --transport http hostinger https://mcp.hostinger.com

This prompt asks Claude to read my server's status through the MCP without changing anything:

code
Using the Hostinger MCP, show me my VPS status and resources, and list the Docker projects running on it. Read-only: don't change anything.

Claude read that straight from my Hostinger account. If you want to deploy your own app the same way, the KVM 2 plan is at hostinger.com/createwithai10, and code CREATEWITHAI10 takes 10% off at checkout.

Step 5: Prove it's really full-stack

A pretty design isn't the same as a real app, so I tested it.

I opened liftbig.io and it loaded, with HTTPS working, so every login is encrypted. I created a fresh test account on the live site, and everything started empty, with no routines, workouts or progress. That's exactly right for a brand new user.

Then I started an empty workout, added bench press and logged my first set: 8 reps at 60 kg. The next set was already filled in with the same numbers, so between sets I only change what's different. I bumped it to 65, then 70, and finished the workout. History showed three sets and 1,560 kg of volume, and the dashboard already showed a top set of 70 kg.

I refreshed the page and the sets were still there, because they're saved in the database on the server, not in my browser.

Then came the real test. I grabbed my phone, logged into the same account, and the same workout was there. The phone gets big buttons for fast entry between sets, while the desktop shows the full dashboard with history and the chart. When I added bench press again, it showed what I did last time and pre-filled 8 reps at 60 kg.

I also found a bug. I typed in a new set and tapped Finish without hitting Next set. The workout saved with zero sets, and nothing warned me that my set was never saved. That one goes on the bug list.

Step 6: Control Claude Code from your phone

This is the part I promised at the start. Using the app on my phone is just normal mobile use. Now I'm going to use my phone to control Claude Code itself and change the app's actual code.

You could do this with Claude Code on your laptop, but then the laptop has to stay on 24/7. That's unreliable, because a laptop can run into random problems at any time, and buying a machine to run all day is expensive with today's RAM and GPU prices. A VPS is a much better option.

Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.

Paid

Back on the VPS, I opened the web console, installed Claude Code with the one-line installer and logged in with my Claude account:

code
curl -fsSL https://claude.ai/install.sh | bash

Now Claude Code is installed on the server, and I can run it whenever I want, from wherever I want. To move the session to my phone, I typed this command, which gives me a link to the exact session:

code
/remote-control

I opened the Claude app on my phone, and the same session was there, running on my server. With my laptop closed, I sent this prompt from my phone to add a new feature:

code
In the liftbig website, add a light mode feature for the website

I could watch Claude Code work right on my phone. When it finished, it had pulled the project from GitHub and added an Appearance setting with Light, Dark and System. It ran the checks, fixed a lint error on its own, all 36 unit tests passed, and the build compiled.

Then it stopped before touching production. It committed the change on its own branch and asked whether I wanted it pushed. I replied: push it live to liftbig.io and GitHub. I had to authenticate GitHub on the VPS once so Claude Code could push changes, and then it finished the deploy.

I opened the same link as before, and the app loaded as normal. In Settings, the Appearance setting now offered Light, Dark and System. I tapped Light, and the whole app switched to a clean light theme, which is much easier to read in a bright gym. Every workout I had logged earlier was still there, because the database lives in its own storage volume, which survives the redeploy.

What you end up with

We started with an empty folder. Now there's a real app with accounts, a database, routines, history and progress charts, live on its own server with HTTPS. I shipped a new feature to it from my phone with my laptop closed, because Claude Code runs on the VPS, not on my laptop. I didn't write a single line of code myself.

You can point this same workflow at your own idea: a habit tracker, a client booking app, or a tracker for your own sport. The order is what matters: spec first, then the build, then the design pass, a GitHub repo, a Docker deploy on a VPS, and Claude Code on the server for updates.

Wrapping up

I planned a full-stack workout tracker with Claude Code, built and redesigned it, and deployed it to a Hostinger KVM 2 VPS with Docker Manager at liftbig.io. The live app keeps data across refreshes and devices. It also has one known bug: tapping Finish before Next set saves the workout with zero sets. Then, from my phone, I had Claude Code on the server add a Light, Dark and System appearance setting and push it live without losing any data.

Found this useful? Get the whole directory inside your AI assistant.
Claude, Cursor, Codex or VS Code can search AI tools, MCP servers and skills for you, and set them up. Free, no account.

Setup guide