setup-guides

ZenQuotes API Setup

The stream page displays random quotes from the ZenQuotes API. To enable this feature, you need to set up the API key.

Environment Variable

Add the following to your apps/backend/.env file:

ZENQUOTES_KEY=e7bcbf9b6403031c62b848421ab21095

API Endpoint

The backend provides a /api/quotes/random endpoint that:

  • Fetches a random quote from ZenQuotes API
  • Returns the quote text and author
  • Handles errors gracefully

Usage

The quote is automatically displayed at the top of the stream page on every load. Users can click the refresh button (↻) in the top-right corner of the quote card to fetch a new quote.

ZENQUOTES SETUP — Docs | HiveJournal