A Node.js application which accepts user input and completes requests accordingly.
You will need to have the following Node.js packages installed prior to running this application: dotenv, inquirer, node-spotify-api, request, and twitter.
In the command line, enter "node liri.js (command) (specify)." (Command) and (specify) are placeholders for user inputs. See below for a list of possible commands. Specify refers to a specific search query, such as a movie or song title, which is entered as a string enclosed in quotes.
You'll need to create a .env file and add the following information between the lines:
"# Spotify API keys" - remove quotes
"# Twitter API keys" - remove quotes
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
You'll need to supply your own Spotify and Twitter API keys.
my-tweets - Displays the user's last 10 tweets and their date of creation.
spotify-this-song + "name of song"- Returns each track's title, artist(s), and album, as well as a preview link. Defaults to "The Sign" by Ace of Base if no search term is entered.
movie-this + "name of a movie" - Returns information about the movie's title, release year, IMDB rating, Rotten Tomatoes rating, country, language, plot, and actors. Defaults to "Mr. Nobody" is no search term is entered.
do-what-it-says - Performs command written in the random.txt file.
A record is kept of all executed commands and results in the log.txt file.
- Node.js packages (dotenv, inquirer, node-spotify-api, request, twitter)