https://github.com/kammarah/bmi-calculator
π»βοΈπβ¨Iβm a passionate building creative Streamlit web apps like this BMI Calculator that gives instant health insights! π»βοΈπβ¨
https://github.com/kammarah/bmi-calculator
calculator coding development panaversity python streamlit webap
Last synced: about 2 months ago
JSON representation
π»βοΈπβ¨Iβm a passionate building creative Streamlit web apps like this BMI Calculator that gives instant health insights! π»βοΈπβ¨
- Host: GitHub
- URL: https://github.com/kammarah/bmi-calculator
- Owner: kAmmarah
- Created: 2025-04-13T07:20:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T08:06:25.000Z (about 1 year ago)
- Last Synced: 2025-05-04T21:11:57.648Z (about 1 year ago)
- Topics: calculator, coding, development, panaversity, python, streamlit, webap
- Language: Python
- Homepage: https://bmi-calculator-uhl33d7prsr2uvwefqxhmh.streamlit.app/
- Size: 1.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BMI-calculatorπͺβοΈπ»β¨
---
### π Step 1: π Create a Project Folder
1. Make a new folder on your computer and name it:
π `BMI-Calculator_App`
2. Inside the folder, add these 3 files:
- `bmi_calculator.py` π (main Python code)
- `background.jpg` πΌοΈ (your background image)
- `logo.png` π¨ (your app logo)
---
### πΎ Step 2: π Install Streamlit (if not already)
Open your terminal or command prompt:
```bash
pip install streamlit
```
---
### βοΈ Step 3: π Add the App Code
1. Open **VS Code** or any text editor.
2. Paste the **full code** I gave you in the previous message into a new file.
3. Save it as: `BMI-calculator.py`
---
### π¨ Step 4: πΌοΈ Add Background & Logo
Make sure your:
- `background.jpg` (from earlier)
- `logo.png` (your BMI icon or image)
...are in the same folder as `BMI-calculator.py`.
β
You can use the ones we already made, or design your own!
---
### π Step 5: π§ͺ Run the App Locally
In the terminal, navigate to the folder and run:
```bash
streamlit run BMI-calculator.py
```
Your browser will open automatically and show your **BMI Calculator app!** ππ»βοΈ
---
### π Step 6: π€ Deploy the App Online (Streamlit Cloud)
1. Go to π [https://share.streamlit.io](https://share.streamlit.io)
2. **Sign in with GitHub**
3. Upload your project to **GitHub**:
- Create a **new repository** (e.g., `BMI-calculator`)
- Upload:
- `BMI-calculator.py`
- `background.jpg`
- `logo.png`
4. Back in **Streamlit Cloud**, select your GitHub repo.
5. Click **"Deploy"** π
β
Done! Your app will have a **public link** you can share!
---
### β
Your App Features
- π¨ Beautiful background and logo
- π§ User inputs height and weight
- π‘ Calculates BMI and explains result
- β€οΈ Footer with your name
---
### β¨ Bonus Ideas to Try Later:
- Add sound effects π΅
- Add a BMI chart π
- Save BMI history in a CSV π
- Add multi-language support π