
















A full-stack management system for a three-location gym: members, staff and shifts, inventory, reorders, vendors and analytics, all behind a REST API I designed and built myself.
This is the project where I learned the fundamentals: semantic HTML, CSS architecture, the DOM, async JavaScript, Node and Express, and relational design in MySQL. I built it because I love the gym, and I wanted to understand what actually happens between clicking "Check in" and a row landing in a database.
17 screens from the deployed app, including the real member and staff workflows (side panels, check-in, payments, an admin-gated delete and shift scheduling), with the network requests each one makes and the SQL behind them. The demo database is real, and it rebuilds itself every night (more on that in chapter 08).
GET /api/dashboard. The server runs 8 queries and answers with one JSON payload, so the page renders in one round trip instead of eight.A classic three-tier app with no framework on the front: static HTML pages served by Express, vanilla JavaScript calling a JSON API, and MySQL underneath. Every layer is something I wrote by hand, which is exactly why I learned so much from it.
68 endpoints across 8 resource routers, plus a manual reset endpoint in server.js. Everything follows REST conventions: nouns for resources, HTTP verbs for actions, and status codes that mean something (201 on create, 400 on validation, 401 for admin, 429 for rate limits).
POST /:id/freeze) rather than a generic PATCH. Less "pure" REST, but every action is explicit, easy to rate-limit and easy to read in logs.Follow one check-in from the click to the toast. Before the handler ever touches the database, the request passes two rate limiters and a validator that itself queries MySQL to make sure the member exists and is active.
16 tables, normalized, with 14 foreign keys. Locations sit at the centre: members, staff, shifts, stock, revenue and reorders all hang off them. The delete rules were deliberate choices, not defaults.
payment_methods stores only card_type, last_four and expiry, never a full card number. Even in a demo I wanted the schema to look like something a real business could ship.About 120 queries, all written by hand and all parameterized with ? placeholders so user input never becomes SQL. Some of the most interesting logic lives in the database rather than in JavaScript.
inventory_products reference along the way).No login system yet, so I focused on what an admin tool can't ship without: throttling, strict input validation, and a second check before anything destructive.
X-Forwarded-For. The Jan 30 fix moved app.set('trust proxy', true) onto the Express app itself and relaxed the limits for the public demo.Pushing to main triggers a Railway build and deploy, so the live site always matches the repo. Because anyone can click Delete on a public demo, a cron job rebuilds the whole database from seed.sql every night at 3 AM Toronto time.
No React and no bundler. Eight HTML pages share a sidebar, modal system and design tokens, and each page has its own script that fetches from the API and paints the DOM. Doing it the hard way taught me what frameworks are actually saving you from.
variables.css recolours all 8 pages at once.31 days, 53 commits, one person. It started as a members table and grew into eight modules. The busiest day, Jan 27, was launch day: 10 commits that added input validation and rate limiting, the demo auto-reset, the locations and settings pages, an Express 5 migration and the Railway deploy fixes.