Skip to content

cnmiller127/Fitness-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness-Tracker

Code

This application is used to keep track of fitness workouts. The workouts can either be cardio or resistance training. The front end was completed by a third party, but I received the duty of writing the backend code. MongoDB and Mongoose were used to create a database which keeps track of user information. Express.js was used for html routing and database extraction and entry. The front end code was analyzed in order to comprehend what needed to be done on the backend. A custom method was added to obtain the total workout duration. The queries in place are "find" all workouts (get), "create" a new workout (post), "update" a workout by id (put), and "find" all workouts completed within the last calendar week (get). The sort method was used to sort the workouts by date. The stats page only contains data from the last calendar week.

Front End Changes

Changes were made to the front end (stats.js) for a better UI. For the line graph and bar graph, the corresponding functions were made separately and modified to add the total duration/weight for the corresponding day associated with the workout in the database. The Donut/Pie chart functions stayed the same.

Screenshot

Screenshot

Heroku Deployment

Click here to use the deployed application.

Releases

No releases published

Packages

No packages published