Giter VIP home page Giter VIP logo

silversagenutrition's Introduction

SilverSageNutrition

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.

Getting Started

Obtain Nutritionix API Key

  1. Obtain a free API Key from Nutritionix at https://developer.nutritionix.com/signup

Connecting to Firebase

  1. Create a new project in Firebase at https://firebase.google.com/
  2. Create a new application in Xcode and obtain your project's bundle identifier
  3. In firebase, select your project and then click the "ios+" icon in order to connect your application to firebase
  4. Screenshot 2023-02-16 at 12 57 56 PM
  5. When registering your application, enter your project's bundle identifer from your Xcode project
  6. Download configuration file. Note: file must be named "GoogleService-Info.plist"
  7. Screenshot 2023-02-16 at 1 00 41 PM
  8. 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
  9. Add Initizlation code to App
  10. Add "GoogleService-Info.plist" to .gitignore file

Set up User Authentication

  1. In the firebase console, select your project name
  2. Screenshot 2023-02-16 at 1 21 31 PM
  3. Select "Authentication" then "Get Started"
  4. Select the sign-in method you would like to use. For this project, email/password was selected.
  5. Select "enable" for whichever method selected, then save
  6. Screenshot 2023-02-16 at 1 24 31 PM

Usage

  1. Users can create an account by selected "Sign Up" and entering an email and password

  2. Users can sign in by selecting "Sign In' and entering the email and password they registed for an account with

  3. 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.

  4. Screenshot 2023-02-16 at 1 39 44 PM
  5. In the food tab, user can select "Add new food" to begin tracking their nutrients.

  6. Screenshot 2023-02-16 at 1 38 54 PM
  7. Screenshot 2023-02-16 at 1 40 55 PM
  8. Screenshot 2023-02-16 at 1 41 03 PM
  9. Screenshot 2023-02-16 at 1 41 11 PM
  10. 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.

  11. Screenshot 2023-02-16 at 1 41 28 PM
  12. The nutrients for added food items can now be seen in the nutrients tab

  13. Screenshot 2023-02-16 at 1 41 34 PM
  14. If a user wishes to delete a food item, they can nagivate to the foods tab and select "delete" for the sepecified food.

  15. This will delete the food from the user's tracked foods and along with the nutrtional data associated with that food item.

  16. Screenshot 2023-02-16 at 1 41 41 PM

silversagenutrition's People

Contributors

lavazane avatar jahopkins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.