/macroCalcHttp

an azure function written in c#

Primary LanguageC#

macroCalcHttp

Calorie & Macronutrient Calculator Azure Function

This Azure Function is being developed using the following:

  • C#
  • .Net Core 3.1

Current form takes the following variables:

  • sex - Accepted values: male, female.
  • age - Age in years.
  • heightInches - Height in inches.
  • weight - Weight in pounds.

The function will use the Mifflin-St. Jeor equations to determine Basal Metabolic Rate. Then output the following information:

  • Rest Day Macronutrient & Calorie Allotment - A starting point for calories to consume on days you do not exercise.
  • Light Day Macronutrient & Calorie Allotment - A starting point for calories to consume on days regular exercise. Example - a 1 hour CrossFit class.
  • Moderate Day Macronutrient & Calorie Allotment - A staring point for calories to consume on days where you may be training for a competion or doing high volume exercise.
  • Hard Day Macronutrient & Calorie Allotment - A starting point for calories to consume if you may be an athlete devoting significant time to a sport.

You can couple this function with a form to send information.