Skip to content

Product Hunt データソースの実装 #5

Description

@ryota-murakami

概要

Product Huntから当日のトッププロダクトを取得する機能を実装する。

要件

  • Product Hunt API v2 (GraphQL) を使用
  • 当日の上位プロダクトを取得
  • Article 型にマッピング(source: "producthunt")
    • thumbnailUrl: プロダクトサムネイル
    • score: votesCount
    • metadata: tagline, topics, makersCount
  • キャッシュ: Upstash Redis, TTL 1時間

環境変数

  • PRODUCTHUNT_API_TOKEN

対象ファイル

  • src/lib/sources/producthunt.ts (新規)
  • src/app/api/cron/collect/route.ts (統合)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions