Skip to content

Mantente saludable y controla tu peso contando tus calorías con Nutrimate

Notifications You must be signed in to change notification settings

KontrolG/nutrimate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calorie Counter

Overview

Getting and staying healthy requires a combination of mental balance, exercise, and nutrition. The goal of the Calorie Counter app is to help the user address nutritional needs by counting calories for various foods.

This app provides the number of calories based on the result of a user search for a type of food. The U.S. Department of Agriculture MyPyramid Food Raw Data will be searched to determine the calorie values.

Calorie Counter also provides you, the developer, with experience in transforming raw data into a format that will make it easier to search. In this case, the MyPyramid Food Raw Data file, which is an MS Excel spreadsheet, must be downloaded and transformed into a JSON file that will be easier to load and search at runtime (hint: take a look at the CSV file format).

App powered by MyPiramid Food Display Table.

A wildcard character is a special character that represents one or more other characters. The most commonly used wildcard characters are the asterisk (*), which typically represents zero or more characters in a string of characters, and the question mark (?), which typically represents any one character.

Problems && Solutions

  1. Parse the data from the U.S. Department of Agriculture MyPyramid Food Raw Data, which it is an MS Excel file.
  • First, the file was saved in CSV (Comma separated vector), then loaded as a plain text in a string and splitted into an array. The array was mapped into objects and saved in a JSON.
  • La data fue procesada para normalizarla lo mas posible.
  1. Configurar devServer para acceder desde la red wifi.
  • host: "0.0.0.0";
  1. Configurar servidores (node y devServer) para poder hacer peticiones a la API.
  • Proxiando la url del servidor en Node. El proxy permite realizar peticiones a otro puerto del mismo dominio, apuntando al puerto desde donde se realiza la petición.

About

Mantente saludable y controla tu peso contando tus calorías con Nutrimate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published