This pull request includes significant updates to the treinotrack project, focusing on adding new functionalities and improving existing ones. The most important changes include adding a new IUuser class for user interactions, implementing an ExerciseRepository for managing exercises, and updating the UserRepository to handle user workouts.
New Functionality:
src/IUconsole/IUuser.java: Introduced the IUuser class to manage user-specific interactions, including displaying workouts and their details.
Repository Enhancements:
src/data/ExerciseRepository.java: Created the ExerciseRepository class to manage exercise data, including loading and saving exercises to a JSON file.
src/data/UserRepository.java: Updated the UserRepository class to include logging and manage user workouts. This includes adding methods to save and load user workouts. [1][2][3][4]
Main Application Update:
src/Main.java: Modified the main application to include role-based access control, allowing users to interact with the system based on their role (admin or user).
Data Changes:
exercises.json: Added new exercise data, including a detailed description of a "Barbell Squat" and a "Hike" exercise.
This pull request includes significant updates to the
treinotrack
project, focusing on adding new functionalities and improving existing ones. The most important changes include adding a newIUuser
class for user interactions, implementing anExerciseRepository
for managing exercises, and updating theUserRepository
to handle user workouts.New Functionality:
src/IUconsole/IUuser.java
: Introduced theIUuser
class to manage user-specific interactions, including displaying workouts and their details.Repository Enhancements:
src/data/ExerciseRepository.java
: Created theExerciseRepository
class to manage exercise data, including loading and saving exercises to a JSON file.src/data/UserRepository.java
: Updated theUserRepository
class to include logging and manage user workouts. This includes adding methods to save and load user workouts. [1] [2] [3] [4]Main Application Update:
src/Main.java
: Modified the main application to include role-based access control, allowing users to interact with the system based on their role (admin or user).Data Changes:
exercises.json
: Added new exercise data, including a detailed description of a "Barbell Squat" and a "Hike" exercise.