Skip to content

About

OneFitness is a web portal for running a gym or fitness center: registering members, following up on enquiries, collecting payments and renewals, printing receipts, issuing refunds, and reporting on the business.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

OneFitness

A web portal for running a gym or fitness center: members, enquiries, payments and renewals, receipts, refunds and business reports, all in one dashboard.

OneFitness dashboard

📖 Read the User Manual for a screen-by-screen guide.

Features

  • Members: registration with webcam or uploaded photo, search, and full membership and invoice history
  • Enquiries: capture walk-ins and calls, with configurable enquiry reasons
  • Payments and renewals: plan selection by workout and installment, tax calculation, partial payments with balance tracking, and automatic next-renewal dates
  • Receipts: view, print or reprint any invoice
  • Refunds: issue and track refunds against a payment
  • Reports: 11 reports, including renewals due/lapsed, outstanding balances, tax summary and staff collection, with CSV export and Tally export
  • Administration: workouts, installment plans, tax rates, membership types, roles, users and company settings
  • Role-based access: Admins see everything; front-desk roles see day-to-day screens only

Screenshots

Members
Members
Add Member
Add Member
Payments
Payments & renewals
Receipt
Printable receipt
Enquiries
Enquiries
Refunds
Refunds
Reports
Reports — Renewals Due / Lapsed
Membership Types
Membership Types
Users
Users
Login
Sign in

More screenshots of every screen and report are in the User Manual.

Tech stack

Part Folder Technology
Frontend OneFitnessUI Next.js 16, React 19, TypeScript, Tailwind CSS 4
Backend API OneFitnessAPIs ASP.NET Core Web API, Entity Framework Core, JWT authentication
Database — SQL Server (default) or PostgreSQL

Running locally

Prerequisites

  • .NET 10 SDK and the EF Core tools (dotnet tool install --global dotnet-ef)
  • Node.js 20 or newer
  • SQL Server (or PostgreSQL)

1. Start the API

cd OneFitnessAPIs
cp OneFitness.API/appsettings.Development.example.json OneFitness.API/appsettings.Development.json

Edit OneFitness.API/appsettings.Development.json and set Jwt:Key to a long random secret (64+ characters). This file is git-ignored, so keep secrets here, not in appsettings.json.

Check the connection string and DatabaseProvider (SqlServer or PostgreSql) in appsettings.json.

Create the database by applying the migrations (use PostgreSqlApplicationDbContext for PostgreSQL):

dotnet ef database update --project OneFitness.Repository --startup-project OneFitness.API --context SqlServerApplicationDbContext

Then start the API:

cd OneFitness.API
dotnet run

The API listens on http://localhost:5284.

No login account is created automatically. Add the first Admin user to the database before signing in. After that, further users can be created from the Users screen.

2. Start the UI

cd OneFitnessUI
npm install
npm run dev

Open http://localhost:3000 and sign in.

To point the UI at a different API, set NEXT_PUBLIC_API_BASE_URL in OneFitnessUI/.env.local:

NEXT_PUBLIC_API_BASE_URL=http://localhost:5284/api

About

OneFitness is a web portal for running a gym or fitness center: registering members, following up on enquiries, collecting payments and renewals, printing receipts, issuing refunds, and reporting on the business.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages