Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.66 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.66 KB

A SONG A DAY KEEPS THE BLUES AWAY

giphy-downsized 4

WHAT IS THIS?

A Twitter bot that brings you a fresh song daily based on a monthly theme.

SETUP

1- Clone the repo

  • From the command line (aka the terminal) enter git@github.com:wearecolorcoded/song_selecta.git or fork it into your account with the button on the top right of the screen

  • Cd into the directory cd song_selecta

2- Node and packages

  • Make sure you have Node installed. If not, get it here
  • Run npm install

3- API Credentials

  • We are using dotenv to hide our environments variables so before you start the application, get your credentials:

    • On Twitter Register your app with your bots' account, not yours. Unless you wish to post songs from your account.

    • On Spotify

  • Create a .env file, and add your credentials like so

clientId='SPOTIFY CLIENT ID GOES HERE'
clientSecret='SPOTIFY CLIENT SECRET GOES HERE'

CONSUMER_KEY='TWITTER CONSUMER KEY GOES HERE'
CONSUMER_SECRET='TWITTER CONSUMER KEY GOES HERE'
ACCESS_TOKEN='TWITTER ACCESS TOKEN GOES HERE'
ACCESS_TOKEN_SECRET='TWITTER ACCESS TOKEN SECRET GOES HERE'

4- Use and Remix the app!

  • Start the server by running npm start
  • Open you Twitter bot's page
  • Watch a song get tweeted

🌈