Skip to content

eyr1n/spotify-now-playing

Repository files navigation

spotify-now-playing

初回の Access Token, Refresh Token の発行

.dev.vars を作成する.

CLIENT_ID=Client IDを記載
CLIENT_SECRET=Client Secretを記載
REDIRECT_URL=http://localhost:8787

npm run dev を実行後 http://localhost:8787 にアクセスし,Access Token と Refresh Token を取得する.

デプロイ

Cloudflare KV の名前空間を作成する.

npx wrangler kv:namespace create KV

wrangler.tomlbindingid を記載後,以下のコマンドでデプロイする.

npx wrangler secret put CLIENT_ID
npx wrangler secret put CLIENT_SECRET
npx wrangler kv:key put --binding=KV "access-token" "Access Tokenを記載"
npx wrangler kv:key put --binding=KV "refresh-token" "Refresh Tokenを記載"
npm run deploy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published