GithubHelp home page GithubHelp logo

kristiannmiller / km-jw-fitlit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turingschool-examples/fitlit-starter-kit

1.0 0.0 0.0 3.46 MB

FitLit project starter kit for students

JavaScript 99.37% HTML 0.18% CSS 0.45%

km-jw-fitlit's Introduction


Logo

Fitlit

Exploring array iterator methods, dynamically displaying data on the DOM, and using TDD.
Explore the docs

Table of Contents

About The Project

This project is part of Turing Software and Design's Front-End Program, Module 2. The project focused on building an application using test-driven-development (TDD) every step of the way. The program was implemented with ES6 syntax and exclusively uses array-prototype methods whenever iterations need to be performed. There are no for loops used in the program. Four distince databases were originally supplied, each representing large chunks of data for 50 randomly generated "users". Our task was to create several objects containing methods which would dynamically display a given users' data on the DOM when selected.

Built With

  • Node.js
  • Mocha
  • Chai

Installation

  1. Clone the repo git clone https://github.com/Kristiannmiller/km-jw-fitlit.git

  2. Install NPM packages Mocha Chai Moment.js Chart.js

Usage

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

Roadmap

The total allotted time for this project was approximately 10 days. Future features contemplated by the developers included the following:

  • More fully responsive DOM;
  • Methods to compare a user's friends' (team) daily stats against another user's friends' stats;
  • Update the data being used with apis and porting the information to a remote server;

See the open issues for a list of proposed features (and known issues).

Contact

Kristi Miller - email

Jeff Woltjen - [email protected]

Project Link: https://github.com/Kristiannmiller/km-jw-fitlit

Acknowledgements

Robert Gu - The developer team would like to thank Turing Module 2 anchor instructor Robert Gu for helping unlock the mysteries and potential of his favorite coding language, Javascript.

Travis Rollins - We would also like to thank Turing Module 2 instructor Travis Rollins for his guidance and assistance during this project and the module in general.

km-jw-fitlit's People

Contributors

brittanydionigi avatar dependabot[bot] avatar hannahhch avatar jwoltjen avatar khalidwilliams avatar kristiannmiller avatar robbiejaeger avatar

Stargazers

 avatar

km-jw-fitlit's Issues

Test issue

As a developer, when I visit issues in GitHub, I want to see an issue, so that I can address the issue

Sprint3 :: sleep quality each day per week

For a user, their sleep quality each day over the course of a given week (7 days) - you should be able to calculate this for any week, not just the latest week

Possible Solution

filter method

Sprint3 :: hrs slept each day per week

For a user, how many hours slept each day over the course of a given week (7 days) - you should be able to calculate this for any week, not just the latest week

Possible Solution

filter method

Sprint1 :: TDD

Create TDD testing to test functionality of UserRepository and User classes

Sprint2 :: fl oz per day

For a user, how many fluid ounces they consumed for a specific day (identified by a date)

Possible Solution

find method

Sprint4 :: Step goal met

For a user, did they reach their step goal for a given day (specified by a date)?

Possible Solution

filter method

Sprint4 :: miles per day

For a specific day (specified by a date), return the miles a user has walked based on their number of steps (use their strideLength to help calculate this)

Possible Solution

either map or reduce method(s)

Sprint1 :: UserRepository methods

Build methods within UserRepository class that:

  • Given a user's ID, what is their user data?
  • The average step goal amongst all users

Sprint4 :: Create an activity metric

Make a metric of your own! Document it, calculate it, and display it.
Return flights of stairs per day per user

Possible Solution

forEach method

Sprint3 :: create a metric

Make a metric of your own! Document it, calculate it, and display it.
Greatest sleep of all time

Possible Solution

sort/unshift methods

Sprint4 :: Team activity averages

For all users, what is the average number of:

  • stairs climbed for a specified date
  • steps taken for a specific date
  • minutes active for a specific date

Possible Solution

forEach/reduce method(s)

Sprint2 :: Average fl oz overall

For a user (identified by their userID - this is the same for all methods requiring a specific user’s data), the average fluid ounces consumed per day for all time

Possible Solution

reduce method

Sprint3 :: Heaviest sleepers

For a given day (identified by the date), find the users who slept the most number of hours (one or more if they tied)

Possible Solution

find/sort method

Sprint3 :: sleep quality average > 3

Find all users who average a sleep quality greater than 3 for a given week (7 days) - you should be able to calculate this for any week, not just the latest week

Possible Solution

filter/sort method

Sprint2 :: fl oz per week

For a user, how many fluid ounces of water consumed each day over the course of a week (7 days) - return the amount for each day

Possible Solution

filter method

Sprint4 :: active minutes

For a user, (identified by their userID) how many minutes were they active for a given day (specified by a date)?

Possible Solution

find method

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.