How shreejai/vite-fitness works
Project type and purpose
• This is a Single-Page Application (SPA) built with React and Vite.
• Its purpose is to let users pick a workout type, muscle groups, and objectives, then generate a tailored gym workout.
File structure
• Top-level: config files (.eslintrc.cjs, vite.config.js, tailwind.config.js, postcss.config.js), package.json, index.html.
• public/: static assets served at build time.
• src/: the heart of the client app
• main.jsx – application entry, mounts React root
• App.jsx – top-level component, orchestrates sections
• components/ – UI pieces (Hero, Generator, ExerciseCard, Workout, Button, SectionWrapper)
• utils/ – pure JS modules (functions.js, swoldier.js) that encapsulate workout logic and data
• index.css – global styles via Tailwind directives
• Build tool: Vite handles dev server with HMR and production bundling.
README for additional insights
• Confirms React + Tailwind CSS for styling.
• No backend or external APIs—everything runs client-side.
• Workflow: user selection → “Formulate” → utils compute workout → UI renders result.