yiminwook / liveuta

https://liveuta.vercel.app
MIT License
3 stars 2 forks source link
mongodb nextjs oracle reactquery youtube-api-v3

๐Ÿ“ข Pull Request๋Š” dev ๋ธŒ๋žœ์น˜์— ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Main - https://liveuta.vercel.app

Dev - https://liveuta-dev.vercel.app

๊ฐœ๋ฐœํ˜„ํ™ฉ - https://github.com/orgs/utawaku/projects/2

node v18.19.0

Server API docs

  1. POST /api/push
  body PushData[]

  return {
    data: {
      response: { success: string; messageId: string; }[];
      successCount: number;
      failureCount: number;
    }
  }

Types

interface PushData {
  token: string;
  title: string;
  body: string;
  imageUrl: string;
  /**
   * webpush๋ฅผ ๋ˆŒ๋ €์„๋•Œ ์ด๋™ํ•  ๋งํฌ
   * ์ด๋ฏธ liveuta๊ฐ€ ์ผœ์ ธ์žˆ์„๋•Œ๋Š” ๋งํฌ๊ฐ€ ์žˆ์–ด๋„ ์ด๋™์—†๊ณ  ๋‚ด๋ ค๊ฐ„ ์ฐฝ๋งŒ ๋‹ค์‹œ ์˜ฌ๋ ค์คŒ
   */
  link: string;
  timestamp: string; //unix time
}

Environments

NEXT_PUBLIC_SITE_URL=http://localhost:3000
/** ๋ฏธ์‚ฌ์šฉ */
HOLODEX_API_KEY=
/** Youtube Data v3 API */
GOOGLE_API_KEY=AIz...

/** Auth */
NEXTAUTH_SECRET=
ACCESS_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
KAKAO_CLIENT_ID=8d5844ce926ac62276b23fa3ff96ee57
KAKAO_CLIENT_SECRET=67g5mtxhr0YJD4nbfTF21pZoD0GjARUF
DISCORD_CLIENT_ID=1212658245248884756
DISCORD_CLIENT_SECRET=CXO1wJL5kzEtJbzpuu6pMwU7IFA7DNrk

/** Google Sheet v4 API, Firebase Cloud Messaging */
FIREBASE_CLIENT_EMAIL=firebase-adminsdk...
FIREBASE_PROJECT_ID=liveuta-...
FIREBASE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\n...
NEXT_PUBLIC_FIREBASE_VAPID_KEY=BAKlP...

MONGODB_URI=

ORACLEDB_CONNECTSTRING=
ORACLEDB_PASSWORD=