"Discipline is the bridge between goals and accomplishment."
A professional-grade, luxury-tier accountability system for the 20 Hard Challenge. Designed for high-performers who demand absolute transparency and zero-excuse tracking.
This platform has been transformed from a personal tracker into a world-class productivity suite.
- Marvelous UI: A cinematic "Elite Dark" experience with gold glassmorphism, fluid
framer-motionanimations, and a high-end command center aesthetic. - Multi-User Support: Secure account creation and data persistence for multiple challengers.
- Performance Analytics: Interactive Chart.js visualizations for completion trends and consistency scores.
- Physique Reporting: Weight tracking with trend lines, goal progress, and transformation metrics.
- Elite Community: A live activity feed simulating a global network of high-performers.
- Brutal Enforcement: Automated streak failure logic—missed days are detected and logged as failures.
Built on a modern, scalable tech stack:
- Frontend: React 18 + Vite for lightning-fast performance.
- Backend: Node.js + Express.js REST API.
- Database: MongoDB (with in-memory fallback for local development).
- Security: JWT (JSON Web Tokens) for secure, stateless authentication.
- State Management: React Context API for global performance tracking.
- Node.js 18+
- npm or yarn
- MongoDB (optional, fallback included)
# Clone the repository
git clone https://github.com/Devansh292004/20-hard-challenge.git
cd 20-hard-challenge
# Install dependencies
npm install
# Start both Frontend and Backend
npm run devThe app will be available at http://localhost:5173. The API runs on http://localhost:5050.
- Two Workouts: 45 minutes each, one MUST be outdoors.
- Clean Diet: Follow a strict nutrition plan. No cheat meals.
- Hydration: Drink 1 gallon (3.78L) of water daily.
- Learning: Read 10+ pages of a non-fiction/educational book.
- Proof: Take a daily progress photo.
- Failure: Miss ONE task? Reset to Day 1. No exceptions.
- Personal Dashboard: Real-time streak tracking and daily objective checklist.
- Advanced Analytics: Deep dives into your performance history with interactive graphs.
- Physique Tracker: Monitor your physical transformation with weight trends and progress stats.
- Elite Community: Stay motivated with a global feed of achievements and community statistics.
- Adaptive Backend: Automatically handles local development or cloud deployment with MongoDB or Persistent File Storage.
.
├── src/
│ ├── frontend/ # React components, pages, and luxury styles
│ │ ├── components/ # Reusable UI modules (Glass cards, charts, etc.)
│ │ ├── pages/ # View-level components (Dashboard, Analytics, etc.)
│ │ └── App.jsx # Main App component
│ ├── backend/ # Node.js + Express API, Auth, and Enforcement logic
│ │ ├── routes/ # API endpoints
│ │ ├── models/ # Database schemas
│ │ └── server.js # Backend entry point
│ └── main.jsx # React entry point
├── tests/ # Unit, Integration, and Playwright E2E tests
└── package.json # Project configuration
We welcome contributions to make the challenge even more effective. Please see CONTRIBUTING.md for details.
MIT License - See LICENSE for details.
Build Discipline. Embrace the Hard. 🔥