Back to projects

Platform ยท Booking and payments

Golfer

Based in Taiwan

topgolfer.app

Overview

Golf course reservation, payment and membership platform with a mobile app, owner and cashier web apps and a payment service.

The problem

Golfer is a golf course reservation, payment and membership platform. Players use a mobile app, and course staff use web apps for owners, cashiers and reservations.

A tee time can be booked by several people at once. Deposits must be collected before a slot is held, and unpaid bookings must expire and free the slot and any vouchers. Courses also price by tee time, day, membership and group, and run caddies, lockers and food orders that must reconcile with each booking.

My part

I am a Senior Backend Engineer on Golfer at Bomber Co., Ltd. I architected the multi-tenant NestJS API and built the booking engine and the payment integration, and I review code for the team.

What I built

Booking and reservation API
A NestJS and TypeScript API on Prisma, MySQL and Redis handles bookings, players, invitation workflows, cancellation, status changes, the reservation calendar and exports, serving the mobile app and the owner, cashier and POS clients.
Pricing and promotions
Time-based booking with multi-tier promotions: pricing per store by tee time, day, membership, group and bank card promotion, with vouchers allocated, transferred and expired by scheduled jobs.
Deposit payment flow
The backend starts a deposit payment through a separate payment service connected to the NewebPay gateway, handles the callback, updates the booking, generates the invoice and sends the new status to the app in real time.
Caddies, lockers and food
Caddie assignment and availability, locker management released on booking completion, and food and drink orders with invoices, voids and reports.
Scheduled and queued jobs
Cron jobs expire unpaid deposits, a queue sweeps expired vouchers, and other jobs sync weather and apply player restrictions.
Versioned apps and CI
Two API versions over shared domains, with a pipeline that checks version isolation, builds, validates the schema and runs migrations against a restored database.

Decisions that shaped it

One grid for every tee time
A single helper builds the tee time grid from store settings and every consumer reads it, replacing separate generators that drifted apart when the interval did not divide 60.
A payment proxy for the gateway
A separate service encrypts payloads, hosts the redirect form and decrypts the webhook, which keeps merchant keys and gateway code out of the main API.
A lock that fails open
Caddie assignment takes a short Redis lock so two requests cannot take the same caddie. If Redis is down the lock is skipped on purpose and staff can fix a rare clash, so Redis guards against duplicates without being a hard dependency.
Shared domains, isolated versions
Lint rules and a CI check forbid imports across API versions, so a new version can ship without changing the old one's behavior.
Bulk expiry, then side effects
The expiry job bulk-cancels expired bookings, then releases each booking's vouchers in its own try block, so one failure does not block the rest, and a daily sweep catches missed ones.

Where it stands

  • A large data model and a long migration history behind one API with two versions.
  • Six web frontends and a React Native app depend on the same backend.
  • Documented flows for the payment gateway, dynamic tee time intervals and API versioning.

Core features

  • Course reservation
  • Payments
  • Membership
  • Mobile app
  • Owner web app
  • Cashier web app

Tech stack

  • NestJS
  • Prisma
  • MySQL
  • BullMQ
  • Next.js
  • React Native
  • Lumen (PHP)

Related clients