Skip to content

Flask application to calculate the users Basel Metabolic Rate - with CircleCI integration.

Notifications You must be signed in to change notification settings

mahonyodhran/bmr-calculator-python

Repository files navigation

BMR Calculator

Description

Application to calculate the users Basel Metabolic Rate (BMR). Each input will be stored in a MySQL database and an email is sent to a sandbox email address using Mailtrap to simulate the user getting an email if they tick the box.

Status

CircleCI

Run Locally

Clone the project

  git clone https://github.com/mahonyodhran/bmr-calculator-python.git

Create a virtual environment in the root directory

  python -m venv venv

Install dependencies

  pip install -r requirements.txt

Run tests

  python -m pytest -v tests/

Start the server

  python app.py

Note: If running locally, due to ENV_VARS being set for SMTP server using please do not select to receive email or it will crash - alternatively, create a .env file and make SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, DEVEMAIL variables. I used Mailtrap for this, the email actually goes to that sandbox rather than your inbox - for now.


About

Flask application to calculate the users Basel Metabolic Rate - with CircleCI integration.

Topics

Resources

Stars

Watchers

Forks