AGŌGĒ Stockholm: a complete gym platform

C#.NET 10ASP.NET CoreBlazor WebAssemblyEF CoreSQL ServerSignalRPWASwishxUnit

Live at agogesthlm.se

AGŌGĒ Stockholm is a premium underground performance gym: strength training, personal coaching, boxing, kickboxing, BJJ and Muay Thai under one roof. The name is the Spartan word for upbringing, and the gym is built around that idea of a whole path to becoming stronger, not a rack of machines.

I designed and built the software that runs it, end to end: the public website, the member app, the trainer tools, the owner's back office, the billing and the door. It started as a first commit in June 2026 and grew over roughly five months into a platform with three role-specific experiences on one codebase.

The challenge

A boutique gym normally runs on a patchwork: one tool for bookings, another for invoices, a spreadsheet for payroll, a separate door system, a newsletter service and a pile of PDFs. Each one costs a monthly fee, none of them talk to each other and the member sees a different logo every time.

The brief was to replace all of it with one product that:

  • feels like the gym's own brand, not a generic booking widget,
  • works on a phone first, because members use it in the changing room,
  • handles Swedish realities: SEK, Swish, Autogiro, friskvård receipts, GDPR, accounting exports,
  • is cheap and simple to run, on a single Windows or Linux server,
  • and can grow feature by feature without being rewritten.

What I built

For the owner

  • Members and team. Search, filter and sort members, approve or reject registrations, edit profiles, add more owners, onboard trainers with their own rates and availability.
  • Memberships and contracts. Plans with binding periods and notice periods, freeze and unfreeze, upgrades and downgrades, a waitlist for full plans, cancellation with an effective date, and a membership contract as a PDF.
  • Billing. One invoice per month with many lines: the membership fee and pro-shop purchases fold into the same monthly invoice, instant payments spin off their own. Invoices are PDFs that are emailed automatically, with overdue reminders, recurring invoice schedules and promo codes.
  • Payments. Swish and Autogiro (direct debit) flows with idempotency protection so a double click or a retried request can never charge twice.
  • Accounting. Payroll export to CSV and PDF, a SIE 4 export that opens in Fortnox, Visma or Bokio, a BAS account mapping, expenses, revenue forecasts and a daily digest email.
  • Schedule. One-to-one sessions, group classes, recurring series, courses with enrolment, schedule templates, holiday and exception opening hours, a live TV page for the lobby.
  • Door access. A five-minute rotating QR code on the member's phone, a live kiosk screen, a manual check-in and a webhook for the electric strike on the door (a Raspberry Pi guide is part of the documentation).
  • Brand and content. Accent colour, typography and dark or light presets with a live preview, a configurable landing page, announcements, email and push campaigns, special events with RSVPs, a weekly member spotlight.
  • Control. A full audit log with CSV export, outbound webhooks for the events other systems care about, scheduled and manual backups, and GDPR tools for data export and erasure.

For trainers

  • A live session console that shows the client's health notes, goals, streak, the last session and a suggested workout before they walk in, with inline logging.
  • Progressive overload suggestions: the system proposes the next weights and reps from the client's history, and one tap applies them to the workout log.
  • Reusable workout and session templates, multi-week programmes (with an automatic generator), nutrition plans, PAR-Q and intake assessment forms, private coaching notes, a red-amber-green at-risk indicator on every client and a side-by-side client comparison.
  • Session requests from clients that they approve or decline, and their own stats and income pages.

For members

  • A dashboard with the next session, streak, sessions left and gym news.
  • A premium digital membership card with a live QR code, also available as a Google or Apple Wallet pass, plus a calendar feed for any calendar app.
  • My Progress: body metrics, nutrition tracking, personal records, progress photos, goals and a 52-week training heatmap, with an opt-in leaderboard.
  • Booking of classes and one-to-one sessions, waitlists, a late-cancellation policy, session packages and a pro shop with stock levels.
  • Social features: friends, an activity feed, shoutouts, reactions and a birthday wall; loyalty points; and a Fighter Log for sparring and weight-cut tracking for combat-sports members.
  • An AI assistant that answers questions about classes and bookings and can book a spot, using tool calls that are scoped to the signed-in member.
  • Reminders by email and web push, retention nudges and milestone messages that arrive when they matter.
  • Self-service friskvård receipts (the Swedish wellness benefit) as a PDF every January, and a GDPR page where members export or request deletion of their own data.

Everything is available in Swedish and English, in light and dark mode, and installs as an app on iOS and Android.

How it is built

Layer Choice
API ASP.NET Core 10 Web API, JWT authentication, role-based authorisation, rate limiting, an ApiResponse<T> envelope on every response
Front end Blazor WebAssembly on .NET 10, mobile first, installable as a PWA with a service worker
Data EF Core 10 with SQL Server in production and SQLite for development, with code-first migrations that run on start
Real time SignalR for the live door log and the kiosk display
Background work .NET BackgroundService jobs for reminders, renewals, retention nudges, birthdays, milestones, overdue invoices, digests and backups
Documents QuestPDF for invoices, contracts, payroll, progress reports and receipts
Email and push MailKit (SMTP configured from the UI) and Web Push with VAPID
AI The Anthropic Messages API with a small set of scoped tools
Security Two-factor sign-in (TOTP), email verification, password reset, an audit trail, idempotency keys, health checks

The solution follows a strict dependency rule: the domain project has no framework dependencies, the data project depends only on the domain, and the front end shares nothing with the back end except plain DTOs. That is what lets one codebase serve a web app today and a native iOS app later through the same API.

By the numbers

  • More than 75,000 lines of hand-written C# and Razor
  • 116 domain entities and about 86 API controllers
  • Around 120 screens and components
  • More than 70 schema migrations
  • 13 background services keeping the gym running while nobody is looking
  • A test suite for the logic where mistakes cost money: billing, cancellations, idempotency and backup scheduling

Decisions worth explaining

  • One invoice per month. Members dislike a stream of tiny invoices and accountants dislike them even more. A rolling monthly draft collects fees and shop purchases and is finalised once.
  • Idempotency everywhere money moves. Mobile networks drop connections and people double-tap. Payment and purchase requests carry a key, so a retry returns the first result instead of charging again.
  • Integrations that degrade gracefully. Email, push, Swish, wallets, door hardware and the AI assistant all work in a safe fallback mode when they are not configured, so the same build runs on a laptop, in a demo and in production.
  • Simple to host. The deployment guides cover Windows Server with IIS and Ubuntu with nginx, with a one-command build and deploy script, so the gym does not need a cloud bill or a DevOps team.
  • Honest about what is wired up. Swish and Autogiro run in a faithful simulation until the gym signs its bank agreements, and the integration points for the live services are already in place.

What this shows about how I work

I take a vague business need, break it into the people who use the system and the moments that matter to each of them, and build something coherent rather than a list of features. I care about the unglamorous parts: money handling that cannot double-charge, data protection, backups, documentation and a deployment the owner can repeat on their own.

If you run a gym, a studio, a clinic or any membership business, or you need a back office and an app built around how your own team works, I would be glad to talk.

Discuss a project ← Selected projects

↑ ↓ to choose, Enter to open, Esc to close

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.