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.
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.