m-glock / Inhaltsstoff-Warnapp

University project - Prototype of an App that allows to scan the barcode or the ingredient list of a product to compare with a list of preferences and allergies
4 stars 2 forks source link

Backend structure #12

Closed m-glock closed 3 years ago

m-glock commented 3 years ago

Class diagrams -> which information/classes/methods do we need? how are Frontend and Backend connected?

Kirill: analyse and describe how the backend would look like

  1. where do we store the data?
  2. which interfaces do we have between backend and frontend?
  3. which APIs/frameworks can we use additionally?
  4. show in diagrams how the classes should look like (partition into classes)
kipmann commented 3 years ago

https://www.raywenderlich.com/7426050-firebase-tutorial-for-flutter-getting-started#toc-anchor-008

where do we store the data? locally in the db -> SDK Firebase & Flutter (UI) https://firebase.google.com/docs/database/android/offline-capabilities

which interfaces do we have between backend and frontend? we dont need a backend, if we use firebase

which APIs/frameworks can we use additionally? firebase

show in diagrams how the classes should look like (partition into classes)

kipmann commented 3 years ago

InhaltstoffWarnApp

m-glock commented 3 years ago

alternative sqflite: https://suragch.medium.com/simple-sqflite-database-example-in-flutter-e56a5aaa3f91

kipmann commented 3 years ago

A new test app was implemented in Android Studio with Flutter and Firebase based on these tutorials: https://codelabs.developers.google.com/codelabs/flutter-firebase#7 https://medium.com/flutterdevs/explore-realtime-database-in-flutter-c5870c2b231f additionally I checked out sqllite db: https://medium.com/@abeythilakeudara3/to-do-list-in-flutter-with-sqlite-as-local-database-8b26ba2b060e

See the branch "firebase-tutorial" -> https://github.com/m-glock/Inhaltsstoff-Warnapp/tree/firebase-tutorial

Some screens for the results:

Bildschirmfoto 2020-11-22 um 18 30 00 Bildschirmfoto 2020-11-22 um 18 30 04 Bildschirmfoto 2020-11-22 um 18 30 38
m-glock commented 3 years ago

Decision: use SQLite as local DB on mobile phone.

Firebase can be used for text recognition an/or barcode scanning