India's Most Advanced Fitness, Nutrition & Wellness Platform
Version: 0.2.0 | Backend: ✅ Complete | Frontend: 🚀 Starting | Status: Production Ready
CoreMatrix is not just another fitness app. It's an integrated health & wellness ecosystem that combines:
- 🌍 Indian-First - Everything designed keeping Indian user's special needs in mind
- 💪 Fitness Tracking - Workouts with AI/ML form correction (including Yoga poses and exercises)
- 🍽️ Nutrition Planning - AI dietician with Indian alternatives (scanning Thalis as whole for cal count)
- 💊 Supplement Intelligence - Smart recommendations with price comparison (shows lowest among sites)
- 👥 Social Community - Progress reels, leaderboards, challenges (motivate one-another)
- 🏋️ Trainer Marketplace - Book certified trainers & specialists (both online/offline bookings)
- 🏪 Gym Discovery - Find gyms near you (google map integration)
- 🎮 Gamification - Challenges,streaks,rewards,leaderboards (weekly challenges and real time scoreboards)
| Metric | Count |
|---|---|
| Database Models | 15 |
| API Endpoints | 50+ |
| Lines of Backend Code | 15,000+ |
| Features Implemented | 25+ |
| Revenue Opportunities | 8 |
| Supported Languages | 6 (ready) |
Backend: Node.js, Express, MongoDB, Mongoose
Frontend: React 18, React Router, Tailwind CSS
AI: Gemini
Media: Cloudinary
Email: SendGrid
Database: MongoDB Atlas (production ready)
Deploy: Docker, Render, Vercel
Real-time: Socket.io (ready)
✅ Personalized meal plans based on:
- Age, weight, height, activity level
- Fitness goals
- Budget constraints
- Dietary preferences (vegetarian, vegan, jain, non-veg)
- Indian food alternatives
- Monthly cost estimation
Example:
Input: 25yr, 75kg, muscle gain goal, ₹5000/month, vegetarian
Output:
- Breakfast: Paneer Paratha + Curd
- Lunch: Dal Makhani + Rice
- Dinner: Grilled Tilapia + Roti
- Macros: 150g protein, 250g carbs, 70g fat
- Cost: ₹6200/month
- Alternatives: Sprouts, Soya, Eggs, Lentils
✅ AI-powered supplement recommendations with:
- Price comparison (Amazon, Flipkart, HealthKart, MuscleBlaze)
- Authenticity scoring (batch verification, QR codes)
- Lowest verified price highlights
- User reviews & ratings
- Affiliate commission tracking
Example:
Whey Protein Comparison:
HealthKart: ₹4,699 ⭐ (Lowest)
Flipkart: ₹4,999
Amazon: ₹5,200
Authenticity: 95/100 ✅ Verified Sellers
✅ Compete on multiple levels:
- National: Top performers across India
- City-wise: Mumbai, Delhi, Bangalore, etc.
- College-wise: IIT-B, DU, Anna, etc. (Viral potential!)
- Company-wise: Employee wellness competitions
Categories:
- Top Fat Loss (% weight lost)
- Top Muscle Gain
- Most Consistent
- Longest Streak
✅ Engaging community challenges:
- 10,000 Steps Challenge
- 30-Day Yoga Challenge
- 100 Pushups Challenge
- 30-Day Fat Loss Challenge
- Sponsored Challenges (revenue!)
Features:
- Leaderboard tracking
- Reward points
- Progress verification
- Completion badges
✅ Social fitness sharing:
- Transformation photos
- Workout videos
- Yoga sessions
- Meal posts
- Journey updates
- Smart feed (similar goals, age, city)
- AI content moderation
✅ 7-factor health assessment:
- Fitness Age - Your body's fitness level
- Strength Score - Muscular capability
- Recovery Score - Recovery quality
- Mobility Score - Flexibility
- Nutrition Score - Diet quality
- Consistency Score - Habit strength
- Overall Health Score (0-100)
CoreMatrix-Fitness/
├── backend/
│ ├── models/ (15 MongoDB schemas) ✅
│ ├── routes/ (50+ API endpoints) ✅
│ ├── services/ (AI integrations) ✅
│ ├── controllers/ (business logic)
│ ├── middleware/ (auth, validation)
│ ├── scripts/ (database seeding) ✅
│ ├── server.js ✅
│ ├── package.json ✅
│ └── .env.example ✅
├── client/
│ ├── src/
│ ├── public/
│ └── package.json
├── FEATURES.md ✅ (Comprehensive API docs)
├── SETUP_GUIDE.md ✅ (Step-by-step setup)
├── BUILD_SUMMARY.md ✅ (What we built)
├── DEVELOPMENT_CHECKLIST.md ✅ (Roadmap)
├── ENV_CHECKLIST.md ✅ (Environment variables checklist)
├── ENV_VARIABLES_SETUP.md ✅ (Detailed environment setup guide)
└── QUICK_START.md ✅ (Quick start guide)
- Node.js 16+ installed
- npm installed
- MongoDB instance (local or Atlas)
- Redis instance (local or cloud) - for caching, real-time features
- Basic API keys from services (OpenAI, Razorpay/Stripe, SendGrid)
# Clone the repository
git clone https://github.com/your-repo/CoreMatrix-Fitness.git
cd CoreMatrix-Fitness
# Install backend dependencies
cd backend
npm install
# Install frontend dependencies
cd ../client
npm install# Copy backend environment template
cd backend
cp .env.example .env
# Edit .env with your API keys (see ENV_VARIABLES_SETUP.md for details)
# Minimum required for basic setup:
# - MONGO_URI
# - JWT_SECRET
# - NODE_ENV=development
# - PORT=4000
# - OPENAI_API_KEY (for AI features)
# - RAZORPAY_KEY_ID & RAZORPAY_KEY_SECRET (for payments)
# - SENDGRID_API_KEY (for email)
nano .env
# For the frontend, create client/.env.local (if not using Vercel env vars)
# This will be automatically picked up by Create React App
cat > client/.env.local << EOF
REACT_APP_API_URL=http://localhost:4000/api
EOFcd backend
npm run dev
# Backend runs on http://localhost:4000cd client
npm start
# Frontend runs on http://localhost:3000- Open
http://localhost:3000in your browser. - Backend health check:
http://localhost:4000/api/health - Try signup/login.
- Visit Dashboard.
# In backend directory
node scripts/seedDatabase.jsFor a complete and detailed list of all environment variables, their purpose, and how to obtain them, please refer to:
- Backend: Deployed on Render as a container. Ensure
MONGO_URI,JWT_SECRET, and other necessary API keys are set in Render's environment variables for the service. - Frontend: Deployed on Vercel (root set to
client/). ConfigureREACT_APP_API_URLto point to your deployed backend URL (e.g.,https://your-render-backend.onrender.com/api) in Vercel's Environment Variables. - Docker:
Dockerfileis included for local development and potential containerized deployments.docker-publish.ymlGitHub Actions workflow can build and push images to GitHub Container Registry (GHCR).
GET /api/health— returns{ status: 'ok' }for health checks.POST /api/auth/register— create an account; response includestoken.POST /api/auth/login— login; response includestoken.PUT /api/auth/profile— update user profile (authenticated).GET /api/workouts— returns workouts for the authenticated user.POST /api/workouts— create a workout (authenticated, with validation).PUT /api/workouts/:id— update a workout (authenticated, with validation).DELETE /api/workouts/:id— delete a workout (authenticated).GET /api/meals— returns meals for the authenticated user.POST /api/meals— create a meal (authenticated, with validation).PUT /api/meals/:id— update a meal (authenticated, with validation).DELETE /api/meals/:id— delete a meal (authenticated).GET /api/tip— get a daily nutrition tip (authenticated).POST /api/supplements/recommend— get AI-powered supplement recommendations (authenticated).GET /api/supplements/search— search supplements.GET /api/supplements/:supplementId/prices— get price comparison for a supplement.GET /api/challenges— list active challenges.POST /api/challenges/:challengeId/join— join a challenge (authenticated).POST /api/challenges/:challengeId/update-progress— update progress in a challenge (authenticated).GET /api/challenges/user-challenges— get authenticated user's challenges.POST /api/video/analyze— upload and analyze workout video (authenticated).GET /api/analytics/user-analytics— get user analytics (authenticated).
-
Blank frontend or dashboard not loading:
- Ensure
REACT_APP_API_URLon Vercel points to your deployed backend API (e.g.https://your-render-backend.onrender.com/api). - Check browser console for CORS or 405/500 errors.
- Verify your backend service is running and accessible from the frontend.
- Ensure
-
Registration / login failing (401 Unauthorized):
- Confirm the backend URL is correctly set in
client/.env.local(for local development) or Vercel environment variables (for deployment). - Inspect backend logs (local console or Render logs) for stack traces.
- Ensure
JWT_SECRETis correctly configured and matches the secret used to sign tokens.
- Confirm the backend URL is correctly set in
-
500 errors from backend:
- Check backend logs for exact error messages. The centralized error handler should provide more informative output.
- Common causes include database connection issues (
MONGO_URI), invalid data leading to Mongoose errors (now partially mitigated byexpress-validator), or unhandled exceptions.
-
Docker build errors on Render:
- Ensure your
Dockerfilecreates and uses a non-root user properly. Ifchownor file permissions are issues, review the Dockerfile.
- Ensure your
- API entrypoint:
backend/server.js - Auth logic:
backend/controllers/authController.js - Fitness controllers:
backend/controllers/fitnessController.js - Client entry:
client/src/index.js - Client API wrapper:
client/src/api.js - Main layout and styles:
client/src/components/Layout.js,client/src/styles.css - Backend Authentication Middleware:
backend/middleware/authMiddleware.js - Backend Validation Middleware:
backend/validation/fitnessValidation.js - Frontend Protected Routes:
client/src/components/ProtectedRoute.js
- Frontend Development: Continue building out the remaining frontend components for dashboard, meal planning, supplement marketplace UI, etc., as outlined in
DEVELOPMENT_CHECKLIST.md. - Responsiveness and UI/UX Enhancements: Address specific responsiveness issues and integrate more engaging UI elements (animations, SVGs, icons) to enhance user experience, ensuring no app bloat.
- Refine Authentication and Authorization: Implement robust authorization (e.g., admin roles) as noted in
backend/routes/challenges.jsfor POST endpoints. - Testing: Implement comprehensive unit, integration, and end-to-end tests for both frontend and backend.
- Performance Optimization: Review and implement caching strategies (Redis), image optimization, and API response pagination as suggested in
BUILD_SUMMARY.md.
MIT License - See LICENSE file for details
CoreMatrix has the potential to become India's #1 Fitness & Wellness Platform.Completely open to suggestions and your valuable input.
We're just getting started! 💪
Current Status: Backend MVP Complete ✅ | Frontend Development 🚀 | Let's Go! 🔥 Integration of some features is pending!! Kindly provide your love and support if possible <3