I want a barcode scanner that will allow the user to scan food products so that it can track the allergens within the product and to show the ingredients in that product. the user will specify what allergies they have and then the information from the product will indicate whether it is ok to consume. I want to add the information of the ingredients/ allergens into a firebase database so the barcode that has been scanned will fetch up the correct list for that product.
if you have any knowledge on this I would really be grateful for your help
i just need to know how i would code and set it up in the firebase database so that when the barcode is scanned it would fetch the correct data. i also need to know how i would allow the user to filter the different allergens before using the scanner
i just need to know how i would code and set it up in the firebase database so that when the barcode is scanned it would fetch the correct data.
Get the data in the database. Scan the barcode, ask the database for data of this EAN. Output the data.
i also need to know how i would allow the user to filter the different allergens before using the scanner
Normalize the different allergens to it’s own database table. Create a user table, create some code that can connect users to allergens. Only output allergens the user has selected after scanning and reading from the database.
Then you are in the wrong place - because that is the requirement before you can even start to think about getting it into an Ionic app. I suggest you find a place, book, forum, … where you can learn about server side applications with databases.