This is an iOS app that tracks my food consumption and allows me to upload what I eat to my website.
There isn't anything particularly novel about this project. There are lots of apps that allow you to track your caloric intake (like the popular MyFitnessPal). But as far as I know they do not allow developers to access user food log data or export it.
So I made this app which not only saves what I eat, but also publishes it to my website. Check it out: https://paul.bitutsky.com#food
Hopefully, knowing that people can see what I eat will motivate me to eat healthier foods. 🙃
The real reason for this project, however, was for me to learn Swift 4 and SwiftUI. Special thanks to the iOS course on raywenderlich.com.
This app uses the Nutritionix API to get nutritional information (such as calories) on foods that the user inputs. The pictures also come from Nutritionix.
Since I am the only intended user of the app, I have not published it on the app store. But if you'd like to try it out, just add the file NutritionTracker/Helpers/Secrets.swift and set the constants NUTRITIONIX_APP_ID
and NUTRITIONIX_APP_KEY
. You'll also need to modify the code in NutritionTracker/Helpers/Upload.swift so that it published the food data not to my site, but to yours instead.