Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.64 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.64 KB

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

./scripts/doTheThing.sh

  1. Builds the cache
  2. Checks it into git
  3. Deploys GitHub pages

npm run build:cache

To rebuild the files in /public/cache Runs scripts/buildCache.js

npm run deploy

To deploy to Github Pages. Runs build and pushes gh-pages branch.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

API

The API is powered by a Google Sheet using SheetDB.

Proxy for Libby API

Added a proxy for the Libby API. See the ./lambda/openapi.yaml for the API contract to interact with the API.

Getting the Authorization Token

  1. Go to https://libbyapp.com/
  2. Sign into your libraries
  3. Retrieve the authorization token from the local storage key dewey.sentry.identity
  4. Then, you can use the bookId returned by the Overdrive Thunder API response and whether you want to put it on hold or loan combined with the library short name (plano / dallaslibrary / etc.) to reserve books!