Skip to content

ViniOcCode/diet-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diet Calc

Diet Calc é um site que, com base na sua idade, peso, altura e sexo, calcula automaticamente:

  • Taxa Metabólica Basal (TMB)
  • Índice de Massa Corporal (IMC)
  • Macronutrientes ideais (proteínas, gorduras e carboidratos)
  • Quantidade diária recomendada de água

Esses cálculos consideram seu nível de atividade física e objetivo (manutenção, bulking ou cutting).

Você pode dar uma olhada nele aqui: https://diet-calc.onrender.com

Site

🌟 Objetivo

Este projeto foi desenvolvido como parte de uma disciplina da faculdade, com foco na ODS 3 – Saúde e Bem-Estar.
A ideia é promover a segurança alimentar e nutricional, oferecendo uma base inicial para quem quer melhorar seus hábitos de forma informada.


⚙️ Tecnologias Usadas

  • Flask: Framework web para backend em Python
  • Jinja2: Motor de template para HTML dinâmico
  • Python 3.x
  • HTML/CSS: Estrutura e estilo da interface

🚀 Como Funciona

1. Formulário Inicial

O usuário preenche um formulário com:

  • Peso
  • Altura
  • Idade
  • Sexo
  • Nível de atividade física (sedentário a muito ativo)
  • Objetivo (manutenção, bulking ou cutting)

2. Resultado

Ao enviar o formulário, os seguintes dados são exibidos:

  • TMB calculada
  • IMC
  • Quantidade ideal de água diária
  • Distribuição de macronutrientes baseada no objetivo

🖥️ Como Rodar Localmente

  1. Clone o repositório:
git clone https://github.com/ViniOcCode/diet-calc.git
cd projeto
  1. Instale as dependências:
pip install -r requirements.txt
  1. Inicie a aplicação:
python main.py
  1. Acesse no navegador:

http://localhost:5000


Qualquer dúvida ou sugestão, fique à vontade para abrir uma issue!


Diet Calc (English Version)

Diet Calc is a web app that calculates, based on your age, weight, height, and sex:

  • Basal Metabolic Rate (BMR)
  • Body Mass Index (BMI)
  • Ideal Macronutrients (proteins, fats, and carbohydrates)
  • Recommended daily water intake

These calculations take into account your physical activity level and fitness goal (maintenance, bulking, or cutting).


🌟 Purpose

This project was developed as part of a college assignment, focusing on SDG 3 – Good Health and Well-Being.
It aims to promote food security and nutrition by offering a starting point for those who want to improve their lifestyle.


⚙️ Technologies Used

  • Flask: Web framework for Python backend
  • Jinja2: Templating engine for dynamic HTML rendering
  • Python 3.x
  • HTML/CSS: Page structure and styling

🚀 How It Works

1. Input Form

The user fills out a form with:

  • Weight
  • Height
  • Age
  • Sex
  • Physical activity level (from sedentary to very active)
  • Goal (maintenance, bulking, or cutting)

2. Result

Once the form is submitted, the following results are displayed:

  • Calculated BMR
  • BMI
  • Ideal daily water intake
  • Macronutrient distribution based on the goal

🖥️ Running Locally

  1. Clone the repository:
git clone https://github.com/ViniOcCode/diet-calc.git
cd projeto
  1. Install the dependencies:
pip install -r requirements.txt
  1. Start the Flask server:
python main.py
  1. Open your browser and go to:

http://localhost:5000


Feel free to open an issue if you have any questions or suggestions!

About

A web app that provides nutrition guidance for people starting their health journey.

Topics

Resources

Stars

Watchers

Forks