Skip to content

pomkos/brotein

Repository files navigation

Table of Contents

  1. Description
  2. Screenshots
  3. Whey Powder Calculator
  4. Protein Snack Calculator
  5. How tos
  6. Run
  7. Host

Brotein

Just a simple repo to compare protein powder of all types

Screenshots

Whey Powder Calculator

Protein Bar/Chip/Cookie Calculator

How tos

Run

  1. Clone the repository:
git clone https://github.com/pomkos/brotein
cd brotein
  1. Create a conda environment (optional):
conda create --name "bro_env"
  1. Activate environment, install python, install dependencies.
conda activate bro_env
conda install python=3.8
pip install -r requirements.txt
  1. Start the application:
streamlit run brotein.py
  1. Access the portfolio at localhost:8501

Host

  1. Create a new file outside the brotein directory:
cd
nano brotein.sh
  1. Paste the following in it, then save and exit:
#!/bin/bash

source ~/anaconda3/etc/profile.d/conda.sh

cd ~/brotein
conda activate bro_env

nohup streamlit run brotein.py --server.port 8502 &
  1. Edit crontab so portfolio is started when server reboots
crontab -e
  1. Add the following to the end, then save and exit
@reboot /home/brotein.sh
  1. Access the website at localhost:8502

About

script to analyze cost vs protein

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages