vj-abishek / spotify-server

A Simple example to use Spotify API and Musixmatch API with node js to show lyrics

Home Page:https://spotify-server.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-server

An example for using Spotify API with node js

Installation

npm install

To install the dependencies

npm start

To start the Server

Setup

  1. Register a Spotify App and add http://localhost:8000/callback as a Redirect URI in the app settings
  2. Create an .env file in the root of the project
  3. Go to Musicmatch Api and get an API key add the API KEY to .env file
  4. Create a now.json file and add the following

now.json settings

{
  "version": 2,
  "builds": [{
    "src": "./index.js",
    "use": "@now/node-server"
  }],
  "routes": [{
      "handle": "filesystem"
    },
    {
      "src": "/.*",
      "dest": "index.js"
    }
  ]
}

Add Secrets to now.sh

now secret add VERSION $VERSION

To see the list of secrets

now secrets list

About

A Simple example to use Spotify API and Musixmatch API with node js to show lyrics

https://spotify-server.now.sh


Languages

Language:JavaScript 100.0%