How amiramooo/fitfusion- works
FitFusion is a fitness-planning web app with a browser-side planner, meal and workout views, and food logging, backed by an Express API and PostgreSQL. The visible planner workflow collects profile data, saves a user and fitness plan, and renders plan metrics; the API also supports profile management and aggregate statistics. Source excerpts show the browser requests and server database calls. The README is empty, and the other HTML pages were not sampled, so their specific routes and wiring are not inferred.
Main entry points: script.js Planner logic · server.js Express API · db.js PostgreSQL · index.html Planner interface
Components 13
Browser experience
- Planner interface
index.html - Results page
results.html - Tracker page
tracker.html
Fitness planning
- Planner logic
script.js - Plan metrics
script.js - Meal planning
script.js - Workout planning
script.js
Daily tracking
- Food logging
script.js
API and persistence
- Express API
server.js - Profiles and plans
server.js - Fitness statistics
server.js - PostgreSQL
db.js
Other components
- User
Connections 11
- User → Planner interface: uses
- Planner logic → Express API: posts profile
script.js - Planner logic → Express API: posts plan
script.js - Planner logic → Plan metrics: renders
script.js - Planner logic → Meal planning: renders
script.js - Planner logic → Workout planning: renders
script.js - Planner logic → Food logging: handles events
script.js - Express API → Profiles and plans: routes
server.js - Express API → Fitness statistics: routes
server.js - Profiles and plans → PostgreSQL: queries
server.js - Fitness statistics → PostgreSQL: queries
server.js