Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 565 Bytes

File metadata and controls

18 lines (12 loc) · 565 Bytes

React Reader Example

React + Vite frontend that links readers via POST /readers, lists them via GET /readers, and starts a reader checkout via POST /readers/{id}/checkout.

Run

  1. Start any backend example (defaults to http://localhost:8080).
  2. Install dependencies and start the dev server:
cd frontend/react
npm install
npm run dev
  1. Open the URL printed by Vite and link a reader.

If your backend is on another origin, enter its base URL (for example http://localhost:8080). The backend must allow CORS for cross-origin requests.