A food tracker app that allows the user to scan barcodes and view the nutritional information. Please navigate through the read me, issues, and wiki to learn more.
The result page can sometimes give an alert: "undefined is not an object". After testing API by executing curl in powershell, it returns the following error message:
curl : The remote server returned an error: (429) Too Many Requests. At line:1 char:1 + curl -o testing.json 'https://api.nal.usda.gov/fdc/v1/foods/search?qu ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Since the API result has a nested json array, I want to store the array into firestore. However, even by trying de-parse it and redo the format, the nested json array cannot be stored into the database.
The design was to use the API result page as a Stack navigator and put into "Scan" page (a Tab navigator). However, after the scan finishes its action and navigate to the result page, the result page doesn't show up.
Since I could only test new modules in local folders, I copied and paste my work back into the github repo. After committed into my own branch, I tried to do pull request and ready to merge into main branch. However, I have too many commits ahead of the main branch, and it doesn't allow me to resolve conflict.
By executing npm install firebase under the local repo directory, command window prompted errors saying the files cannot be changed or deleted. Even after I ran with administrator permission, I still cannot install modules in my local repo (Windows 10)