I’ve mentioned to some of you that I’ve been working on a web tool to look up nutritional information of foods. The current sites that do this are not very simple, and none that I could find work well or at all on a mobile device. Because I’ve found myself looking up nutritional information a lot recently, I thought I’d start up a small project to see if I could build something better. And thus FoodData.net was born!
One of the reasons I’m releasing this right now, (as opposed to when I have all the fancy features below implemented,) is that I don’t foresee myself having a whole lot of time to work on this in the near future, as I’ve got a lot of other small projects I’m working on right now. Additionally, I’m feeling that right now I have less of a need to be better at coding, and more of a need to be better at being a human. In that light, any extra time I have will likely go toward the latter of those two.
Right now, the site supports looking up nutritional information for any food contained in the USDA nutrient database. I plan to keep adding features as time goes on, including:
- Additional nutrients
- Nutrient/calorie density measures
- Ability to save recipes
- Ability to add data for foods not included in the database
Although you can’t yet save a recipe on the site, each recipe has a unique URL, so you can always bookmark the site to come back to it, or send the link to others to share!
For the devs, here are some implementation details, and some lessons learned:
This site uses Pyramid web framework with a combination of Mako and Moustache templates, and uses webassets to manage static assets. SQLAlchemy is used for the ORM layer.
I hope some people might find it useful in its current state. So head on over to fooddata.net, and tell me what you think!