This project is an Angular single-page application (SPA) for tracking user workouts. Users can add their workout details, filter workouts by type, and view summaries of their total workout time.
- Add user details including workout type and minutes
- Display users in a paginated table
- Filter users by name and workout type
- Persist data using
localStorage
- Generate summary statistics for each user
- Unit tests with 100% code coverage for one component and one service
- Hosted on Github Pages
- Node.js
- Angular CLI
-
Clone the repository: git clone https://github.com/yourusername/health-challenge-tracker.git cd health-challenge-tracker
-
Install dependencies: npm install
To start the development server: ng serve
- Adding a User
- Navigate to the "Add User" section.
- Fill in the user name, workout type, and workout minutes.
- Click "Add Workout" to save the details.
- Use the search bar to filter users by name.
- Use the dropdown menu to filter users by workout type.
- Navigate to the "Summary" section to view workout summaries for each user.
The project achieves 100% code coverage for both UserInputComponent
and UserService
. Below is the summary of the coverage report:
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|
user-input.component.ts | 100% | 100% | 100% | 100% |
user.service.ts | 100% | 100% | 100% | 100% |
You can find the full code coverage report
(https://jayraj175coder.github.io/HealthTrack/)
jayraj Sanas
Thanks.