Skip to content
ISHANT57Public

About

React front-end for booking GOQii Pro fitness classes and buying passes via GOQii's API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GOQii Pro (React front-end)

A React web front-end for booking GOQii Pro fitness classes and buying class passes, built against GOQii's existing API.

What it is

A single-page app where a GOQii user browses the weekly class schedule, opens class details, books a class, views join history, and buys a Pro pass through Razorpay or Paytm checkout. It has no backend. All data comes from GOQii's goqiipro API endpoints (src/netwrokmanager/endpoints.js), which were mapped from network captures of the existing web app. The docs in docs/ describe it as a React port of an earlier Angular front-end. That Angular code is not in this repo.

This is a separate project from Goqii-Transcriber-, the clinical consultation transcriber. It is not an earlier version of that repo, and the two share no code.

Tech stack

  • React 18 (Create React App / react-scripts), React Router 7
  • MUI 6 and Tailwind CSS, Swiper, react-toastify
  • Axios with request interceptors
  • Razorpay and Paytm checkout, CleverTap analytics (optional)

Run locally

npm install
cp .env.example .env   # then fill in the values
npm start              # http://localhost:3000

Environment variables read by the code: REACT_APP_API_BASE_URL (defaults to the GOQii API), REACT_APP_IS_TEST and REACT_APP_CLEVERTAP_ACCOUNT_ID. .env.example also lists REACT_APP_RAZORPAY_KEY, but the checkout takes its Razorpay key from the API response. The code also reads REACT_APP_ENABLE_MOCK_FALLBACK. Set it to true to show the bundled dummy data in src/dummyData/ when API calls fail.

Every screen needs a GOQii user ID in the URL, for example /landing/:userId. The root path / redirects to a fixed user ID set in src/navigation/AppRouter.jsx.

Routes

Path Screen
/landing/:userId Weekly schedule, filters, pass section
/classDetails/:userId/:classId Class details and booking
/classhistory/:userId Class join history
/passclass/:userId Available passes
/payment/:userId/:planId Checkout

Project structure

src/
  navigation/      Router and route constants
  screens/         landing, classDetails, classHistory, passClass, payment
  netwrokmanager/  Axios client, interceptors, endpoints, class/plan/payment services
  utils/           Razorpay, Paytm, CleverTap, date and format helpers
  dummyData/, data/  Fallback data and image maps
docs/              Notes on API mapping, routing, migration status, open questions

About

React front-end for booking GOQii Pro fitness classes and buying passes via GOQii's API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages