Git Product home page Git Product logo

goodreads-wpl's Introduction

Demo

https://olivercardoza.com/goodreads-wpl

Development

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)

Debugging

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&"

Deployment

For Firebase functions

cd functions
firebase deploy

Todo

  • 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

goodreads-wpl's People

Contributors

dependabot[bot] avatar olivercardoza avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

goodreads-wpl's Issues

Library data not loading: "Error: Exceeded maxRedirects. Probably stuck in a redirect loop"

Error returned to client:

{
  "name":"RequestError",
  "message":"Error: Exceeded maxRedirects. Probably stuck in a redirect loop https://encore.kpl.org/iii/encore_wpl/search/C__St:(fooled%20by%20randomness%20the%20hidden%20role%20of%20chance%20in%20life%20and%20in%20the%20markets)?lang=eng",
  "cause":{},
  "error":{},
  "options":{"uri":"https://encore.kpl.org/iii/encore_wpl/search/C__St:(fooled%20by%20randomness%20the%20hidden%20role%20of%20chance%20in%20life%20and%20in%20the%20markets)?lang=eng",
    "qs":{"lang":"eng"},
    "headers":{"User-Agent":"Request-Promise"},
    "insecure":true,
    "simple":true,
    "resolveWithFullResponse":false,
    "transform2xxOnly":false}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.