Skip to content

murillosnds/CAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

💧 CAS - Calculator Aquae Sumptionis

👨🏻‍💻 Made by: Murillo Sergio

Daily water intake calculator! Quick and easy to use.

This project was developed entirely by @murillosnds.

FastAPI Docker

How it works

The API was developed in FastAPI (a Python framework for creating modern APIs) and aims to calculate the recommended daily water intake.

To function, the API uses information such as weight, age, physical activity (sedentary or active), and climate.

Postman Example of API request and response in Postman

Headers

EN-US
ES
PT-BR


Body > raw

en-US - Example

{
  "weight": 74,
  "age": 20,
  "activity": "sedentary",
  "weather": "hot"
}

es - Ejemplo

{
  "peso": 74,
  "edad": 20,
  "atividade": "sedentario",
  "clima": "caliente"
}

pt-BR - Exemplo

{
  "peso": 74,
  "idade": 20,
  "atividade": "ativo",
  "clima": "frio"
}

Weather:

en-US:

cold
hot
very hot

es:

frío
caliente
muy caliente

pt-BR:

frio
quente
muito quente

Activity:

en-US:

active
sedentary

es:

activo
sedentario

pt-BR:

ativo
sedentario

How to run the project

git clone https://github.com/murillosnds/CAS.git
cd CAS
docker build -t cas-api .
docker run -p 8000:8000 cas-api
# Open http://localhost:8000/docs

About

Calculadora de ingestão de água diária

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published