This Node.js app queries different concert (BandsInTown), music (Spotify), and movie (OMDB) APIs and displays relevant results to the user. It can load commands from a text file, and logs all queries to a text file as well. Note that since Spotify API access requires a private key, relevant code is commented out so anyone can quickly clone and test this repository.
It can take in one of 4 commands as parameters:
concert-this
will find and display an artist's next 3 upcoming events, including their dates and locations.
spotify-this-song
will find and display the artist and album of the entered song title
movie-this
will find and display basic information about a movie including the year it was released, ratings, cast, and a short plot summary
do-what-it-says
will run the command it finds on the first line ofrandom.txt
, which will be one of the above 3
Regardless of which command is ultimately run, the queries are stored locally in a log.txt
file. If no input is given to the command, there are defaults in place for all commands (try it to find out!).
This Node app requires the following NPM modules in order to function properly: