https://github.com/mhered/calcount3
calorie counter with atri apps
https://github.com/mhered/calcount3
Last synced: 18 days ago
JSON representation
calorie counter with atri apps
- Host: GitHub
- URL: https://github.com/mhered/calcount3
- Owner: mhered
- Created: 2022-10-16T21:49:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T20:03:38.000Z (over 3 years ago)
- Last Synced: 2025-12-29T07:20:54.115Z (5 months ago)
- Language: Python
- Size: 825 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calcount3
A simple calorie counter app made using the [Atri framework](https://github.com/Atri-Labs/atrilabs-engine) for Hacktoberfest'22
See the [Demo in github pages](https://mhered.github.io/calcount3/)
Note: there seems to be an incompatibility with conda installed in my system, the environment keeps activating itself when I issue `pipenv shell` and then it seems to cause errors:
```
(base)$ mkdir calcount3 && cd calcount3
(base)$ conda deactivate
$ pipenv install atri
$ pipenv shell
(calcount3)(base)$ conda deactivate
(calcount3)$ atri start
```
Sources:
* Nutritional data of selected foods from https://www.webmd.com/diet/healthtool-food-calorie-counter
* Estimated calories for the different nutrients from https://www.wikihow.com/Calculate-Food-Calories
* Target daily intake of calories and nutrients estimated freely using inputs from https://www.menshealth.com/nutrition/a19537348/how-much-fat-and-carbs-should-you-eat/ and https://www.healthline.com/nutrition/how-many-calories-per-day#calculator
## Build and deploy app
Update the [demo app](https://mhered.github.io/calcount3/) after `git commit` and `git push` of new source code
Note: atri commands must run from source directory and inside the pipenv environment, so if neeced do:
```bash
$ cd calcount3
$ pipenv shell
(calcount3)(base)$ conda deactivate
(calcount3)calcount3$
```
Then build and deploy with:
```bash
$ atri build ssg
$ GIT_USER= atri deploy ssg --gh-pages
```