Inspiration
We were thinking about different aspects of health and wellness, and one that came up was nutrition -- without a good diet, it's nearly impossible to remain healthy. However, something we realized was that some of our friends found it difficult to track the nutrition information of homemade dishes due to the lack of a convenient "nutrition facts" label. Thus, we created BetterHealth to allow for a simple, minimalist way to set nutritional goals and track daily progress, pulling from an extensive database of food nutrition facts.
What it does
When users sign up, our mobile-first application prompts them for important details such as their height, weight, age, gender, and goal (bulk, maintain, cut, get strong, etc). Based on these goals and the Mifflin St. Jeor formula for energy expenditure, we provide the user a summary of the macros and calories they need to hit in order to stay on track. Additionally, using the Nutritionix API, we're able to provide a natural language search for the food the user wants to log, making it much less of a hassle to track food intake. The result is a neat dashboard that keeps the user updated on how they're doing as they go through their day :)
How we built it
We used SvelteKit to create the application, as well as the Nutritionix API for fetching nutrition estimates for foods (so that the users could type in natural language and get back accurate information). We used MongoDB to store user data.
Challenges we ran into
We had some trouble with Node versions initially, and overall the learning curve of SvelteKit and MongoDB posed a bit of a challenge, but we ended up getting through them :D
Accomplishments that we're proud of/What we learned
One of us, who had never touched SvelteKit before, was able to contribute significantly to the project! We also learned how to use the Nutritionix API, which will probably be helpful for future hackathons.
What's next for BetterHealth
We plan to add a natural language feature for exercise as well, and we hope to integrate AI-powered workout recommendations and meal plans going forward.
Built With
- mongodb
- nutritionix
- sveltekit
Log in or sign up for Devpost to join the conversation.