Usman Gym

Gym management portal. A full-stack website and management system for a local gym. The public site covers facilities, coaches, memberships and enquiries, while a role-based login splits into a member portal and an admin portal. Admins manage the gym members, generate monthly fees and keep a saved record of every fee, and members sign in to track their own membership.

Overview

A full-stack website and management system for a local gym. The public site covers facilities, coaches, memberships and enquiries, while a role-based login splits into a member portal and an admin portal. Admins manage the gym members, generate monthly fees and keep a saved record of every fee, and members sign in to track their own membership.

Stack

Next JS, TypeScript, Node JS, Prisma, Role-based access, Admin portal, Member portal, Fee management.

Links

Live site · Frontend · Backend

Public website

The site visitors see before they join. Plans, opening hours, tagline and FAQs are edited from the admin portal, so the gym can change them without a developer.

Landing page

Full-screen hero with the gym tagline, "Join now" and "Explore facilities" calls to action, and headline numbers (members, machines, training zones, open days). Facilities, benefits and plans follow below.

Facilities

Cards for strength training, the cardio zone and free weights, each with a photo, an icon and a short description of the space and equipment.

Membership plans

Pricing cards for each plan with the monthly fee and what is included, and one plan highlighted as "Most popular". They are read from the plans the admin manages (name, price, features, display order, highlight), so the page always matches the back office.

Gallery with filters

A photo grid of the equipment, facilities and training sessions, with category filters (All, Equipment, Facilities, Training) to narrow it down.

FAQs

An accordion of common questions: opening hours, membership fees, how monthly payments work, how to become a member, how to check payment status and what happens when a fee is pending.

About

The gym story with a mission and vision card and a "10+ years of coaching" badge, written to build trust with new visitors.

Accounts and security

Signing up only creates a login. The membership itself is activated separately by the gym admin, so nobody can give themselves access.

Sign-up with email verification

Name, email, phone and password (8+ characters with letters and numbers). A code is emailed to verify the account before it can be used, and the page states plainly that membership is activated by the admin, not by signing up.

Login, activation and password reset

Members and admins log in with email or phone number and password. "Forgot password" sends a code and lets them set a new one, and "Activate member account" lets a member the admin added set their own password the first time.

Admin portal

A role-protected back office where the gym admin runs everything: members, monthly fees, payments, plans and even the public website text. These screens are the real app running with made-up members, because the live data belongs to real people.

Dashboard

Cards for total members, active members, new this month, pending fees, sign-ups waiting, paid this month, collected this month and total outstanding. A banner flags payment screenshots waiting for review, people who signed up online are listed with a one-click "Create membership", and a 12-month chart shows members paid versus unpaid (with a table view).

Members

Every member in one table: Gym ID, name and plan, phone, joining date, monthly fee, this month's status (paid or pending) and anything outstanding. Search by Gym ID, name or phone, filter by fee status or membership, and use a "Mark paid" shortcut right on the row.

Add a member

Creates a member with an auto-generated Gym ID, plan, joining date, monthly fee and starting status. Active starts monthly billing from the joining month (a fee record for each month up to now); inactive generates none. People who signed up online appear as quick picks that prefill the form, and the member receives an invitation to set their own password.

Member profile and history

One page per member with their Gym ID, account status, monthly fee, outstanding amount, paid months and joining date, plus tabs for monthly fees and payment history. Each fee has a "Mark paid" or "Correct" action, and the admin can resend the invite, edit or delete the member from here.

Manage members

The maintenance view: search by Gym ID, name or phone, filter by membership status, see who still owes money and whether each member has activated their login, then view, edit or delete.

Safe deletion

Deleting a member shows what will be lost first (paid and unpaid months and amounts) and states plainly that their fee records, payment screenshots and login are removed permanently and the Gym ID is never reused, so it cannot happen by accident.

Monthly fees

Every member has a separate fee record for each billing month. Switch between All, Pending, Overdue and Paid, search by member, and mark a month paid from the row. Anything unpaid past the grace period is flagged overdue.

Record a payment

Marking a fee paid asks for the payment date, method (cash, bank transfer or other), an optional reference and note, and confirms that only that one month is affected, so other months can never be marked paid by mistake.

Payment history and corrections

Every payment ever recorded, searchable by member, with who recorded it and when. A mistaken entry is never deleted: correcting it voids the original with a written reason and records the replacement, so the history stays auditable.

Payment screenshot queue

Members who pay online upload a screenshot. The queue shows a thumbnail, member, month, amount, method and reference, and when it was sent, with tabs for Waiting for review, Approved and Rejected.

Review, approve or reject

The admin sees the screenshot full size next to the member, month, amount and the method and reference they claimed, plus their note. Approving marks only that month as paid; rejecting needs a reason, which is shown to the member so they can upload a clearer one.

Membership plans

All plans with their monthly fee, whether they are public and whether they are active. Plans marked public appear on the website's Membership page, and the highlighted one gets the "Most popular" badge.

Plan editor

Edit a plan's name, monthly fee, short description, feature list (one per line), display order, and whether it is public, highlighted as most popular or active. A note makes clear that changing a price never alters any member's fee or past records.

Website content

The public site is edited here, not in code: gym name, tagline, description, address, phone, email, Google Maps link and opening hours, plus tabs for FAQs, the gallery and messages from the contact form. Social links, the membership note and the online payment instructions members see are editable too.

Settings and billing tools

Change the admin password, and run "Generate missing fees", which checks every active membership and creates any monthly fee records that are missing. Fees are also generated automatically each day, and running the tool again is always safe.

Member portal

Members log in to see their own membership, fees and payments, and can pay online without visiting the front desk.

Dashboard

A big card for the current month's fee and its status with a "Paid online? Upload screenshot" button, then tiles for the Gym ID, monthly fee and plan, outstanding amount and joining date, and the last payment with its month, date and method.

Monthly fees

Each billing month tracked separately with its amount, status, paid date and method. Banners show the outstanding total and when a screenshot is waiting for review, and the month itself shows an "Under review" badge until the admin confirms it.

Upload payment proof

Paid online? The member picks the month, sees the gym's payment instructions, attaches a screenshot (JPEG, PNG or WebP up to 5 MB), says how they paid and adds an optional reference and note. The page is clear that the fee stays unpaid until the admin checks it.

Payment history

Every payment the gym admin has recorded for the member, with the month, date, amount, method and reference.

Profile

The member's Gym ID, a profile picture they can change, and their membership details (phone, email, joining date, plan, fee and status). Those details are read-only and managed by the gym, and the page says so; members can also change their password in Settings.

Platform

What holds it together underneath.

Role-based access

Separate admin and member areas with their own layouts. The Node.js API is split into auth, admin, member and content modules over a Prisma schema, and enforces who may do what on the server.

Installable app (PWA)

An install button, a service worker and an offline page let members add the gym to their phone like a native app.

All projects

MO
Muhammad Osama Khan