How malla-aayushman/seetiesreppies works
SetReps is a workout-tracking web app: users record exercises and dated sets, then review training history, progress, and insights. Account registration and login establish a PHP session; the API exposes session, profile, account, and full-store synchronization operations backed by MySQL. The sampled JavaScript shows exercise logging, session editing, and dashboard/progress/insights rendering. Client-to-store synchronization details are not visible in the excerpts, so that connection is not asserted here.
Main entry points: app.js Workout logic · db.php Database access · auth.php Session helpers · auth.js Auth submit handler
Components 22
Workout tracking
- Workout app
SetReps.html - Workout logic
app.js - Exercise catalog
app.js - Session logging
app.js - Session history
app.js
Training analysis
- Dashboard
app.js - Progress views
app.js - Training insights
app.js
Identity and profile
- Login page
login.php - Registration page
register.php - Auth submit handler
auth.js - Login endpoint
api/login.php - Registration endpoint
api/register.php - Session endpoint
api/session.php - Logout endpoint
api/logout.php - Account updates
api/account.php - Profile endpoint
api/profile.php - Session helpers
auth.php
Persistence
- Store sync API
api/data.php - Database access
db.php - MySQL store
setreps.sql
Other components
- User
Connections 28
- User → Login page: opens
- User → Registration page: opens
- User → Workout app: uses
- Login page → Auth submit handler: loads
- Registration page → Auth submit handler: loads
- Auth submit handler → Login endpoint: submits login
- Auth submit handler → Registration endpoint: submits registration
- Workout app → Session endpoint: checks session
- Workout logic → Exercise catalog: uses
- Workout logic → Session logging: records sets
- Workout logic → Session history: renders history
- Workout logic → Dashboard: renders
- Workout logic → Progress views: renders
- Workout logic → Training insights: renders
- Login endpoint → Session helpers: uses
- Login endpoint → Database access: queries
- Registration endpoint → Session helpers: uses
- Registration endpoint → Database access: queries and writes
- Session endpoint → Session helpers: checks session
- Session endpoint → Database access: loads user
- Logout endpoint → Session helpers: ends session
- Account updates → Session helpers: requires login
- Account updates → Database access: updates account
- Profile endpoint → Session helpers: requires login
- Profile endpoint → Database access: reads and updates
- Store sync API → Session helpers: requires login
- Store sync API → Database access: loads and syncs
- Database access → MySQL store: reads and writes