Skip to content

hiterm/bookshelf

Repository files navigation

ci vercel

Bookshelf

Web App for books management

Demo

https://bookshelf-demo.vercel.app/

This is a read-only demo app. Update operations will not be reflected. It uses a mock server. Because the mock server doesn't have fully compatibility, other features might also not work.

Backend

or

Dependent platforms

  • Auth0

How to run locally

Read this: https://auth0.com/docs/quickstart/spa/react.

cp .env.template .env.development
vim .env.development  # fill your value

Start Bookshelf API.

npm run generate
npm start

Environment variables

name description
VITE_AUTH0_DOMAIN Auth0 domain. See https://auth0.com/docs/quickstart/spa/react/interactive.
VITE_AUTH0_CLIENT_ID Auth0 client id. See https://auth0.com/docs/quickstart/spa/react/interactive.
VITE_AUTH0_AUDIENCE The identifier of Bookshelf API. See https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens#parameters.
VITE_BOOKSHELF_API An URL of Bookshelf API endpoint.
VITE_DEMO_MODE If it is 'true', sign-in will be skipped. It is intended to be used with mock-bookshelf-api.

Deploy to production

Commit into master.