-
NodeJS - Liri requires node to be installed
-
To install node visit NodeJS Website.
Clone the Git repository
$ git clone <repo>
Navigate to the directory and install the dependencies
$ npm install
Liri requires the user to provide API keys for individual access to the Twitter, Spotify, and OMDB APIs
-
Create a file called ".env" in the same directory with the following structure:
# Spotify API keys SPOTIFY_ID=your-spotify-id SPOTIFY_SECRET=your-spotify-secret # Twitter API keys TWITTER_CONSUMER_KEY=your-twitter-consumer-key TWITTER_CONSUMER_SECRET=your-twitter-consumer-secret TWITTER_ACCESS_TOKEN_KEY=your-access-token-key TWITTER_ACCESS_TOKEN_SECRET=your-twitter-access-token-secret # OMDB API key OMDB_API_KEY=your-omdb-api-key
Retrieve latest tweets from Twitter account
$ node liri.js my-tweets
Retrieve track information from Spotify.
$ node liri.js spotify-this-song "title"
Retrieve movie information from OMDB.
$ node liri.js movie-this "title"
$ node liri.js do-what-it-says