How bas-hashimi/mastrack works
MassTrack is a fitness and nutrition dashboard. A user interacts with rendered views; browser actions update application state, and signed-in users load and save that state through the PHP API to MySQL. The visible capabilities include meal planning and nutrition tracking, shopping lists, calorie and macro calculations, training plans, weight tracking, hydration, supplements, and habits. Several view and API details are excerpted only partially, so the graph includes only relationships shown in those excerpts; the README contains no product documentation.
Main entry points: views.js Dashboard views · app.js UI actions · api.php Account and state API · state.js App state and sync
Components 13
Browser application
- UI actions
src/script/app.js - App state and sync
src/script/state.js - Dashboard views
src/script/views.js
Fitness features
- Meal plan data
src/script/data.js - Nutrition tracking
src/script/views.js - Shopping list
src/script/views.js - Calorie calculator
src/script/views.js - Training plans
src/script/views.js - Weight tracking
src/script/views.js - Habit tracking
src/script/views.js
Persistence
- Account and state API
src/api.php - MySQL database
db/init.sql
Other components
- User
Connections 13
- User → Dashboard views: uses dashboard
src/script/views.js - Dashboard views → Nutrition tracking: renders
src/script/views.js - Dashboard views → Shopping list: renders
src/script/views.js - Dashboard views → Calorie calculator: renders
src/script/views.js - Dashboard views → Training plans: renders
src/script/views.js - Dashboard views → Weight tracking: renders
src/script/views.js - Dashboard views → Habit tracking: renders
src/script/views.js - Dashboard views → Meal plan data: reads meal plan
src/script/views.js - User → UI actions: triggers actions
src/script/app.js - UI actions → App state and sync: updates state
src/script/app.js - UI actions → Account and state API: sends auth
src/script/app.js - App state and sync → Account and state API: loads and saves
src/script/state.js - Account and state API → MySQL database: reads and writes
src/api.php