Skip to content

Wassaf001/fyle

Repository files navigation

Health Challenge Tracker

Project Overview

Welcome to the Health Challenge Tracker project! This single-page application (SPA) is designed to help users track their workout routines efficiently. The application is built using Angular 18, and includes features like search, filter, pagination, and chart visualizations.

Screenshot 2024-07-17 at 1 41 03 AM

Features

  • Add User Workouts: Input fields for user name, workout type, and workout minutes.
  • Workout List: Display user workouts in a table grid.
  • Search and Filter: Search by user name and filter by workout type.
  • Pagination: Paginate the user workout list when it exceeds five users.
  • Charts: Display workout progress using charts.
Screenshot 2024-07-17 at 1 41 17 AM

Requirements

  • Angular 18.0.1
  • Local Storage for data persistence

Getting Started

Prerequisites

  • Node.js
  • Angular CLI

Installation

  1. Clone the repository:

    git clone https://github.com/Wassaf001/fyle.git
    cd fyle
  2. Install dependencies:

    npm install
    
  3. Development Server: Run ng serve for a development server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

  4. Build: Run ng build to build the project.

  5. Running Unit Tests: Run ng test to execute the unit tests via Karma.

Application Structure

src/app/my_components: Contains all the Angular custom components.

src/app/services: Contains the service files for data handling.

Implementation Details

Adding Workouts

Users can add their workout details using the input fields provided. The data is stored in localStorage and displayed in a table grid.

Workout List

The workout list is displayed in a table format with options to search by user name and filter by workout type. Pagination is implemented for lists exceeding five users.

Charts

Visualize the workout progress of users through charts. This feature is implemented using PrimeNG Chart

Unit Testing

The project includes unit tests for one component and one service, ensuring 100% code coverage.

Running Tests

To run the unit tests, use the following command:

ng test

Test Coverage

The screenshot of the coverage report is available here. Screenshot 2024-07-16 at 11 27 41 PM

Hosting

The application is hosted on Vercel. The hosted link can be found here: Fyle

About

Front-End Assignment .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published