Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.23 KB

readme.md

File metadata and controls

54 lines (36 loc) · 1.23 KB

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