Skip to content

m-coding/fe-05-2-nutrition-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: PLEASE USE YOUR OWN API KEYS AND NOT MINE. THANKS.

Nutrition Tracker

A single page app that tracks your calorie intake and nutrition information for foods you eat.

Features

  • Responsive design
  • Food suggestions "as you type" via search autocomplete
  • Uses food searched as an ingredient to provide recipe suggestions
  • Visually see fat, carbohyrdates, and protein amounts with pie chart
  • Full nutrition information is displayed using the FDA-style "Nutrition Facts" label
  • Tracked foods are saved to your browser's localStorage
  • Option to display all tracked foods or by date
  • Navigate days with interactive date picker

How to run

Local

  1. Navigate to the public folder
  2. Open the index.html in either the src or dist folders

Online

  1. http://m-coding.github.io/fe-05-2-nutrition-tracker/

How to re-build

  1. Requires Node.js and Gulp
  2. Navigate to the root of the project directory (where the gulpfile.js is located)
  3. In your terminal enter the command: npm install, this will install all modules listed as dependencies in package.json
  4. Enter the command gulp clean to delete everything in the dist folder.
  • If you want to preview what files will be deleted, enter the command gulp cleanDryRun instead.
  1. Next enter the command gulp and the project will be built in the dist folder.
  • You can review differences by comparing the src and dist folder.

Documentation

  • Generated by JSDoc in public/docs/jsdoc – open index.html and navigate using right menu
  • Generated by Docco in public/docs/docco – open any html file and navigate using upper right jump menu

Notes

API

JavaScript

CSS

Fonts

Change Log