FitLit is meant to help you track your historical health in 3 main categories; Activity, Hydration, and Sleep. You can view, track, and see trends over all of time or more recently along with the some of the data of your friends.
- Once you are on the splash page of the site you can enter your user ID and then be signed in and taken to the homepage where you will see a panel style layout. The first section under the title will list your account information and the current date.
- Just below that you will see the form section where you can submit your data for the day by choosing one of the three tabs and submitting the form that appears.
- The Steps section will show you:
- If you have hit your step goal for today and a chart comparing your step goal vs. the average step goal amongst all users. You can hover over each section of the chart to display specific numbers for each.
- A ranking of you and your friends based on who has the most steps in the last week.
- Your total positive and negative step trends since you joined. A step trend is defined as any set of three consecutive days where your step count goes up each day or down each day when compared to the previous day.
- The Hydration section will show you:
- How many ounces of water you drank today.
- A bar graph showing your water consumption (oz.) for each day in the previous week.
- The Sleep section will show you:
- The amount of sleep you got last night and your average for the week.
- A chart showing your sleep quality and amount for each day over the past week.
- Your all time daily average for hours slept and sleep quality and your sleep ranking for the week.
- The Activity section will show you:
- Activity today (steps, minutes active, and distance walked in miles and kilometers).
- How much over or under the average you are vs. all users in steps, minutes active, and flights of stairs for the day.
- You activity per day over the past week.
- To run locally:
- Clone and/or fork the repo.
- Run
npm install
. - To launch,
npm run start
ornpm start
and copy the providedlocalhost
url into your browser.
-
When adding data in one of the forms on the main page an error message will display if you try to submit the form without filling out all of the fields. This error message will not go away until the missing fields are filled out and the form is submitted. The error should go away when all inputs are filled out but before the form is submitted.
-
If a form element on the main page is highlighted because it was not filled out, entering an invalid character will cause the error highlighting to disappear. This should only happen if the input is valid.
-
This app is not fully optimized for smaller screen sizes and you may experience issues when viewing on a smaller screen or window.
-
A future iteration to make our charts even more readable by someone who has color blindness would be to add a pattern to each individual part of the graph. At this point, the charts are readable by people who have color blindness, but we want to make the visual look even more differentiated.
- @trishalanglois
- @allisonjw
- @cammac60
- Comp/Setup created by @turingschool