/now-playing

Spotify now playing card generator for github README.md.

Primary LanguageJavaScript

Now Playing

Showcase what you're listening to on your github README.


Setting up for development

For dynamodb, install localstack.

# starting localstack with just dynamodb

SERVICES=dynamodb localstack start

Required Evnironment variables

NODE_ENV=development

AWS_ENDPOINT=http://0.0.0.0:4566
DYNAMODB_ACCESS_KEY_ID=testkey
DYNAMODB_SECRET_ACCESS_KEY=test
DYNAMODB_REGION=ap-south-1

# get a soptify developer account
# https://developer.spotify.com/
SPOTIFY_CLIENT_ID=spot-id
SPOTIFY_CLIENT_SECRET=spot-secret
REDIRECT_URI=http://localhost:3000/api/callback

ENC_KEY=32-character-string

Starting up development server

Install vercel cli for emulating lambda functions.

# install dependencies
yarn

# create table in dynamodb
yarn create-table

# start
vercel dev

Deploy Your Own

Deloy your own instance on vercel.

Deploy with Vercel