Code Monkey home page Code Monkey logo

fitlit's Issues

Create Iteration 4 DATA

Sleep should have multiple classes with methods in each

  • create JS files for each class we make
    Sleep properties include:
    • User Id
    • date
    • hours slept
    • sleep quality
      (figure out where we instantiate a user?)

day class?

  • Method to calculate the average number of hours slept per day for a user.
  • Method to calculate the average sleep quality per day over all time.
  • Method to show how many hours a user slept on a specific day that is identified by a date.
  • Method to show a user's sleep quality for a specific day specified by a date.

These should probably be in a week class

  • Method to show how many hours slept each day over the course of a week. (Should be able to calculate this for any week, not just latest week)
  • Method to show a user's sleep quality over a week. should be for any week, not just latest

readme notes

  • Future Additions
    • a user log-in
    • user can upload their own image as their icon

Create Iteration 3 DATA

(think about how many classes we need)

  • add .js files for each class we decide to create

hydration data keys:
- user id
- date
- num of oz
(where do we want our user to be instantiated?)

create classes and methods that can calculate:

  • Method to find the average fluid ounces consumed per day for all time
  • Method to find how many fluid ounces a user consumed for a specific day (Identified by a date)
  • Method to find how many fluid ounces of water consumed each day over the course of a week (7 days) (would this be it's own class of Hydrationweek?)
    • return the amount for each day (as an array of numbers)

Create Iteration 4 DATA continued...

  • Method to show average sleep quality for all users
  • Method to show all users who average a sleep quality greater than 3 for a given week (not just the latest week)
  • Method to find users who slept the most number of hours identified by the date (1 or more if they tied)

    ask question about how many users we are actually returning? Only one unless there is a tie then we return how ever many tied?

refactor notes

  • test for sad paths
  • Dry up the renderWeeklyOunces() method in the DOM manipulation by adding a .forEach() to the ounces array
  • Fine tune CSS styling for entire app.
  • Dry up the renderWeeklySleepInfo() method in the DOM manipulation by adding a .forEach() (could be tricky. How would we do this with 2 arrays?)
  • Run Linter

Create Iteration 3 DASHBOARD

For a user:

  • create a widget to display how much water they have consumed today.
  • create a widget to show how much water they have consumed each day over the coarse of the last week.

Create Iteration 4 DASHBOARD

  • Display sleep data for the latest day
    • Hours slept
    • Quality of sleep
  • Display sleep data over the course of the lates week
    • Hours slept average
    • Quality of sleep average
  • Display the ALL TIME average sleep quality and ALL TIME average hours slept

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.