$ show parthbuilds-community/FitMart
FitMart is a full-stack fitness e-commerce application built with React 19, Node.js/Express 5, MongoDB (Mongoose 9), Firebase Authentication, and Razorpay payments. It provides a product catalog, shopping cart, checkout flow, order management, user profiles, fitness calculators (BMI, calorie), workout tracking, a rewards system, and an AI chatbot powered by Gemini. The admin dashboard includes KPI grids, customer segmentation, inventory management, sales reports, and bug tracking. The architecture is a monolith with separate client and server directories, using Docker for containerization and GitHub Actions for CI/CD. While the codebase is well-structured with modern patterns (Zod validation, atomic database operations, Redis caching), it suffers from incomplete features, hardcoded values, security gaps (dev admin bypass, hardcoded admin UID), inconsistent error contracts, and limited test coverage. The high number of open issues (276) suggests community engagement but also maintenance challenges.
The LLM identified 5 files worth highlighting for reuse:
Provides a caching abstraction layer supporting both Redis (via Upstash) and in-memory fallback. Exposes get, set, del, and flush operations with TTL support. Demonstrates clean separation of caching concerns and can be extracted for use in any Node.js project requiring a configurable cache backend.
A generic Express middleware that validates request body, query, and params against Zod schemas. Returns standardized error responses on failure. This pattern is reusable across any Express application to enforce request contracts without coupling to specific route logic.
Exports helper functions (ok, fail) to create consistent JSON API responses with status codes and messages. Eliminates repetitive response formatting across route handlers and can be extracted as a standalone utility for any Express API.
Contains a currency formatter (fmt) using Intl.NumberFormat for INR, and a date formatter. Pure functions with no dependencies, easily reusable in any JavaScript project for locale-aware formatting.
Provides BMI calculation, TDEE estimation (Mifflin-St Jeor), and a recommended category based on BMI. Pure functions with no external dependencies, suitable for extraction into any health or fitness application.