How d1gger1/pullup_tracker works
REP / TRACK is a pull-up workout tracker with account registration and login, protected access, set recording, and daily and weekly totals. The evidenced workflow is registration or login through the client, token issuance, and token-gated pull-up API operations that store or query sets and return totals. The tree identifies a home page, but its implementation was not sampled, so its specific display and API wiring are not asserted. The README is empty; the map is based on the supplied tree and source excerpts.
Main entry points: AuthPage.tsx Auth page · index.js Server entry · authControllers.js Auth controller · pullups.js Pull-up routes
Components 16
Client
- Auth page
client/src/pages/AuthPage.tsx - App routing
client/src/App.tsx - Protected route
client/src/components/ProtectedRoute.tsx - Home page
client/src/pages/HomePage.tsx
API
- Server entry
index.js - Auth routes
routes/auth.js - Auth controller
controllers/authControllers.js - Token middleware
middleware/auth.js - Pull-up routes
routes/pullups.js - Set and stats logic
controllers/pullupController.js
Persistence
- User model
models/User.js - Pull-up set model
models/PullupSet.js - DB connection
config/db.js
Other components
- Tracker user
- MongoDB
- JWT library
Connections 18
- Tracker user → Auth page: submits credentials
- Auth page → Auth routes: posts auth request
- Auth routes → Auth controller: dispatches
- Auth controller → User model: queries and saves
- Auth controller → JWT library: signs token
- Auth page → App routing: navigates after login
- App routing → Protected route: guards home route
- Protected route → Auth page: redirects without token
- Server entry → Auth routes: mounts auth API
- Server entry → Pull-up routes: mounts pull-up API
- Pull-up routes → Token middleware: guards requests
- Pull-up routes → Set and stats logic: dispatches
- Token middleware → JWT library: verifies token
- Set and stats logic → Pull-up set model: creates and queries sets
- Server entry → DB connection: connects at startup
- User model → MongoDB: persists users
- Pull-up set model → MongoDB: persists sets
- DB connection → MongoDB: opens connection