Skip to content

BostonUniversitySeniorDesign/FoodScanner1

Repository files navigation

Food Scanner

Application by Harleen Chaudhary and Zhe Tu

This is a user friendly application built with react-native over the course of 14 days which allows users to scan barcodes, take pictures, enter names of food items and get the nutrition facts. The app uses the FDA API to get the nutrition values of the food.

The sprints for this project are under the projects section of this repository.

Login Screen

food20 food8

This is the login page of the app, using gmail authentication to log in. The authentication process is enabled through and stored in Google's firebase. Once logged in, the user is taken to another page(image2), where they have the option to navigate to the home page or log out.

Home Page

food7

This is the home page, where the user has the option to either scan a food item or write a recipe. They can also view old recipes. All the recipes and food item scans are being stored in Firestore Database.

Scanner

food4 food5

This is the bar code scanner of the app, which uses a REST service interacting with the FDC API to return calories per serving of the food item. Tha calories per serving is a user input and the default value is grams.

Recipes

food6 food4

This is the recipe page of the app, where the user has the option to view past recipes or write a new recipe. The data entered by the user is stored in Firebase's Cloud Firestore.

Dependencies

We used Google Firebase for all our storage, including user authentication and recipes. Here are some of our databases.

food3 food5

As mentioned earlier, we used the Food Data Central API: https://fdc.nal.usda.gov/api-guide.html and https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.diabetes.org%2Fnutrition%2Fhealthy-food-choices-made-easy&psig=AOvVaw3kiGgs4_6plUz60Inz9xpc&ust=1631834336834000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCMC9juOOgvMCFQAAAAAdAAAAABAD as our background image for the login screen.