Liri is an application that calls upon the Spotify API (Music), OMDB API (Movies), & Bands in Town API(Concerts).
- npm install axios
- npm install --save node-spotify-api
- npm install moment
- npm install dotenv
- npm install fs
This command calls the Spotify API and the input is the song "In the name of Love," which I preset in the JavaScript code. The API will return the Artists, Name of song, Album that it is from, and a preview link of the song from Spotify.
This command calls the Spotify API and the user can input any song. Below is an example where the input is the song If I can't Have You. The API will return the Artists, Name of song, Album that it is from, and a preview link of the song from Spotify.
This command gets random text from a text file and performs the command in the text file. Below is an example of how this works. In the random file is spotify-this-song, "I want it that way." The API will return the Artists, Name of song, Album that it is from, and a preview link of the song from Spotify.
This command calls the Bands in Town API and the input is the Randy Rogers Band which I preset in the JavaScript code. The API will return the Name of the Artist, Name of the Venue, Location of the Venue, and Date of event.
This command calls the Bands in Town API and the user can input any artist or band. Below is an example where the input is Maroon 5. The API will return the Name of the Artist, Name of the Venue, Location of the Venue, and Date of event.
These commands calls the OMDB API. Below is an example of the preset input written in JavaScript and user input. The API returns the movie title, year the movie came out, IMDB Rating of the movie, Rotten Tomatoes rating of the movie, Country where the movie was produced, language of the movie, and actors in the movie.
This input is preset in JavaScript with the movie The Devil Wears Prada.
The user can input any movie of their choice. Below is an example where the input is the movie Sweet Home Alabama.
This application was written to not only call the information when you imput the commands, but it also stores the data returned in a text file to reference without needing to imput the commands again. This way the user can refer back to the text file rather than imputing the command again.