bitewise-club / bitewise-app

Capital One SWE Summit Hackathon
3 stars 4 forks source link

Spoonacular cache on FireStore #27

Closed sam-xif closed 5 years ago

sam-xif commented 5 years ago

The app will now go to FireStore first before accessing spoonacular, and cache any results from spoonacular on FireStore.

ghost commented 5 years ago

29 adding on the linked project board issue, i would say start by creating the issue in the future so everyone else knows who's doing what

ghost commented 5 years ago

can we just scrape all the popular products now lol?

@schoobydrew my pointage is running a little dry

image

so let me take out a new spoonacular account and then we can go ham taking whatever pictures we want over the next few days and hopefully we won't see as steep a drop in spoonacular points because most food products we will have covered through firebase.

this also makes our app faster because we wont have to make any requests to spoonacular after the initial conversation with firebase, so go ham

ghost commented 5 years ago

just wanted to confirm that it seems like priceProcess.js's firestore await does indeed create toDeleted in ascending order

image