https://olivercardoza.com/goodreads-wpl
Below is only needed when working with Firebase functions. I'm behind the times when it comes to Node/NPM dev (NVM?), commands below work but may not be recommended.
sudo apt-get install node npm
sudo npm install -g firebase-tools
(cd functions && npm install)
Start local webserver:
firebase login
firebase functions:shell
Call function:
curl localhost:5000/goodreads-library-345d3/us-central1/getBooks?goodreadsUserId=100923376-wpl-test
curl localhost:5000/goodreads-library-345d3/us-central1/getGoodreadsBooks?goodreadsUserId=100923376-wpl-test
curl "localhost:5000/goodreads-library-345d3/us-central1/getLibraryStatus?title=Antifragile%3A%20Things%20That%20Gain%20from%20Disorder&author=Nassim%20Nicholas%20Taleb&isbn=1400067820&isbn13=9781400067824&"
For Firebase functions
cd functions
firebase deploy
- Improve book precision by using author name as a post-retrieval filter when querying by title
- Improve book recall by querying using author name
- Include book call number in UI
- Refactor status sent down by server to allow for tighter UI messages