Skip to content

spaceplesiosaur/refactor-tractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FitLit App

This project is a fit-bit like application that utilizes a dataset of 50 people and records their Sleep, Activity, Hydration, and Personal data, then displays them on a website.

For the second part of the project, the code was refactored to make user of class inheritance, fetch calls, and accessibility practices.

The changes that were made were:

  1. The creation of a parent class, which contained methods that were used in multiple classes.

  2. The addition of fetch calls to get data from a server, and add data to data list with POST.

  3. Best practices for accessibility and a few ARIA elements for non-descriptive HTML.

Setup

Clone the repo. Run npm install to ensure all dependencies are running. Enjoy!

Testing

There are tests for all classes and functionality.

Run npm install to set up any dependencies that the tests may be utilizing.

Run tests by running npm tests.

Original Project Prompt

image

  • Follow the specification below to make a working application
  • Implement ES6 classes that communicate to each other as needed
  • Write modular, reusable code that follows SRP (Single Responsibility Principle)
  • Implement a robust testing suite using TDD
  • Use object and array prototype methods to perform data manipulation
  • Display information on the page while maintaining ability to test class properties and methods
  • Create a data dashboard that is easy to use and displays information in a clear way

screencapture

After the refactor,

c9zkTJ

Created By

Ayla Dharamsey & Pol Antoni Sieira

Refactored By

Allie McCarthy, Matt Towarnicky and Colin Koga

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages