How fahim-muntasir/workout-tracker works
This is a React workout-tracking application, inferred from its routes and workout/exercise features; the README is only a generic Vite template. The main flow is account creation or sign-in, access to protected workout and exercise screens, then recording or editing entries; a dashboard chart summarizes recent workout duration. Sampled code shows form/API behavior and chart data retrieval, but not the implementations of the listing and dashboard pages, so their internal wiring is left unspecified.
Main entry points: App.jsx Route map · axios.js HTTP client · Signin.jsx Sign in · Signup.jsx Sign up
Components 16
App routing
- Route map
src/App.jsx - Private route
src/components/PrivateRoute.jsx - Public route
src/components/PublicRoute.jsx
Accounts and access
- Sign in
src/pages/Signin.jsx - Sign up
src/pages/Signup.jsx - Auth state
src/context/AuthProvider.jsx
Workout and exercise records
- Workout list
src/pages/Workouts.jsx - Workout editor
src/pages/AddWorkout.jsx - Exercise list
src/pages/Exercise.jsx - Exercise editor
src/pages/AddExercise.jsx - HTTP client
src/instance/axios.js
Dashboard and layout
- Dashboard
src/pages/Dashboard.jsx - Duration chart
src/components/workoutChart.jsx - App layout
src/components/Layout.jsx
Other components
- User
- API service
Connections 18
- User → Route map: opens routes
- Route map → Public route: routes auth
- Route map → Private route: routes protected
- Route map → Sign in: routes to
- Route map → Sign up: routes to
- Route map → Dashboard: routes to
- Route map → Workout list: routes to
- Route map → Workout editor: routes to
- Route map → Exercise list: routes to
- Route map → Exercise editor: routes to
- Sign in → Auth state: uses login
- Auth state → API service: posts sign-in
- Sign up → API service: creates account
- Workout editor → HTTP client: requests records
- Exercise editor → HTTP client: requests records
- Duration chart → HTTP client: fetches workouts
- HTTP client → API service: sends requests
- Dashboard → Duration chart: renders chart