Fitness and memberships
The fitness preset installs class schedules, bookings with recurring series, membership passes with class credits signed by signing keys, check-in and reminders.
The fitness preset is for an app in the style of Mindbody or Glofox. A
studio schedules its classes, a member books a class with a credit from
their pack, checks in at the door with a QR pass, and gets a reminder before
class.
Config
Recurring series and class credits are block options, off by default, so the preset leaves them to your config:
import { defineConfig } from "better-supabase/config";
export default defineConfig({
preset: "fitness",
blocks: {
bookings: { options: { recurring: true } },
passes: { options: { credits: true, creditRefundBefore: "12 hours" } },
},
});npx better-supabase init --preset fitness starts a new project from it, and
npx better-supabase apply --preset fitness adds it to one you have
(CLI).
Blocks
The preset is saas plus these blocks, and
whatever they require:
| Block | Role in the app |
|---|---|
| calendar | Instructors' calendars and availability |
| bookings | Classes on rooms and instructors, and weekly series |
| passes | Membership passes, class packs and check-in |
| signing-keys | The studio's key that signs each pass |
| reminders | Reminders before a class |
Memberships are billed through billing from saas.
How the blocks connect
With recurring, a weekly class or a standing appointment is one series of
bookings. With credits, a pass with usesAllowed is a class pack:
bookWithCredit books the class through the bookings block's slot check and
takes one credit in the same transaction, and a cancellation before
creditRefundBefore gives the credit back (passes).
With ReUI
- Event Calendar for the class timetable.
- Card for a member's pass with its QR code and credits left.
- Data Grid for a class's attendees, with check-in as a Badge.
Last updated on
Restaurants and POS
The pos preset installs a menu in the catalog, orders with an optional kitchen display, stock in inventory, table reservations, promotions and the ledger.
Nonprofit fundraising
The nonprofit preset installs donors, gifts and pledges posted on the ledger per fund, numbered tax receipts, campaign targets and saved views for donor segments.