GYMVORTEXT
Comprehensive Fitness & Gym Management Platform.

🎯 The Goal
Create a one-stop fitness hub where members can book classes, trainers can manage their schedule and students, and admins can oversee the entire platform.
Tech Stack & Architecture
Frontend
Next.js 15 App Router with Framer Motion for animations and Tailwind CSS for styling.
Authentication
Better Auth supporting both Email/Password and Google OAuth login with JWT stored in HTTPOnly cookies.
Payments
Stripe integration for processing class bookings securely.
Database
MongoDB Atlas utilizing $regex search and $in filters for advanced class discovery.
Key Challenge
Handling three distinct user roles (Admin, Trainer, Member) securely within a single application, ensuring users only see relevant dashboard routes and actions.
The Solution
Implemented comprehensive Role-Based Access Control (RBAC) at both the routing level (protecting dashboard paths) and API level, driven by robust JWT verification.
🚀 Results & Impact
- Streamlined onboarding for trainers with a dedicated application and approval workflow
- Secure, friction-less payment flow with Stripe Checkout
- Engaging community forum that increases user retention and interaction
🔮 Future Plans
"Adding real-time chat between trainers and members, and video uploading functionality for fitness tutorials."