Silver Sage Nutrition is an IOS application developed in Swift 5. It allows users to input foods eaten daily and retrieve nutritional infromation for those foods.
- Obtain a free API Key from Nutritionix at https://developer.nutritionix.com/signup
- Create a new project in Firebase at https://firebase.google.com/
- Create a new application in Xcode and obtain your project's bundle identifier
- In firebase, select your project and then click the "ios+" icon in order to connect your application to firebase
- When registering your application, enter your project's bundle identifer from your Xcode project
- Download configuration file. Note: file must be named "GoogleService-Info.plist"
- Add FireBase SDK. When choosing Firebase libraries, make sure to add FirebaseAuth, FirebaseCore and FirebaseFirestore. You must also aff FirebareAnalystics if you selected to track analytics with Google when created your project
- Add Initizlation code to App
- Add "GoogleService-Info.plist" to .gitignore file
- In the firebase console, select your project name
- Select "Authentication" then "Get Started"
- Select the sign-in method you would like to use. For this project, email/password was selected.
- Select "enable" for whichever method selected, then save
-
Users can create an account by selected "Sign Up" and entering an email and password
-
Users can sign in by selecting "Sign In' and entering the email and password they registed for an account with
-
Once signed in, users are presented with a view of tracked nutrients. This screen will be intentionally blank until the user adds a food item in the foods tab.
-
In the food tab, user can select "Add new food" to begin tracking their nutrients.
-
After adding a food, users can navigate back to the "tracked foods" tab and now see their added food item along with the serving size.
-
The nutrients for added food items can now be seen in the nutrients tab
-
If a user wishes to delete a food item, they can nagivate to the foods tab and select "delete" for the sepecified food.
-
This will delete the food from the user's tracked foods and along with the nutrtional data associated with that food item.