ltetzlaff / spotify-lambda

πŸŽΆπŸ’š Serverless OAuth2ed Access to Custom Spotify Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-lambda

Build Status

code style: prettier

Setup (in ./)

Install NodeJS

Download

Fetch dependencies

npm install

Dev (in ./)

Typescript builds are automatic and watch for file changes:

npm run build

or run this to build only once:

npm run buildOnce

Building, Linting, Formatting, Testing:

npm test

Deploy

  • Put your stuff in .env and .serverless.env.yml file
npm run deploy

Use

  • Go to spotify dev dashboard
    • Set redirect uri to be this app's public url for the /redirect handler
    • Put SPOTIFY_SECRET, SPOTIFY_CLIENT_ID and SPOTIFY_REDIRECT_URI in your .env
  • Send users to /login to approve login
  • Send users to /api to retrieve stuff from API

Useful Ressources

guides

About

πŸŽΆπŸ’š Serverless OAuth2ed Access to Custom Spotify Apps


Languages

Language:TypeScript 95.3%Language:JavaScript 4.7%