This web application uses the Spotify and Slack API to check what you're listening to on Spotify and update your Slack status to the song currently playing
Clone the repository into your projects folder or:
- Download the ZIP file
- Unzip the ZIP file
- Make sure you install all neccesary prerequisites (see below)
Make sure you have installed:
And run:
$ yarn install
To install the dependencies:
This app uses a Client ID and Secret Key. These are used as environment variables. To get these and to be able to use the Web API, the first thing you will need is a Spotify user account (Premium or Free). To get one, simply sign up at www.spotify.com.
When you have a user account, go to the My Applications page at the Spotify Developer website and, if necessary, log in. Accept the latest Developer Terms of Use to complete the set-up of your account.
Follow this Spotify tutorial to get your Client ID and Secret Key.
Add these to the .env file.
This app also uses an OAuth Access Token for Slack. To get this, login at https://api.slack.com/apps and create an app. Then add the users.profile:write permission to your app and install it to your workspace.
Grab the OAuth Access Token and add it to your .env file.
Inside your terminal, change directories into the repository. There run:
$ yarn start
The user needs to give access to Spotify and afterwards the terminal can run in the background.
- Spotify API - The first API used.
- Slack API - The second API used.
- Express - Web framework for Node.js used.
- Axios - HTTP client used.
- dotenv - Library used for .env file integration.
- opn - Library used to open browser window for Authentication.
- JavaScript - Language used.
- Node.js - The asynchronous event driven JavaScript runtime used.