In this assignment. we are making LIRI like iphone's SIRI. liri is a language interpretation and Recognation interface. liri is command line node app that takes in parameters and gives you back data. This liri node app will take different command line to generate result. user has to pass the following command line app to work. user can use node liri.js concert-this "artists name", node liri.js spotify-this-song "song name", node liri.js movie-this "movie name" and do-what=it-says to get information for search.
Liri take following different commands to get expected Result.
- node liri.js concert-this
- node liri.js spotify-this-song
- node liri.js movie-this
- node liri.js do-what-it-says
- node liri.js "Name of the song" search will produced given output.
- Artist(s)
- Name of the song
- Album
- Song preview spotify URL
This command line using the API request to spotify.
Expected output:
- Title of the movie.
- 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.
- Plot of the movie.
- Actors in the movie.
In thie "Movie-this", Axios is using to retrive the movie data using OMDB API. Here is images of API request and their result.
Expected output:
- Name of the venue
- Venue location
- Date of the Event (use moment to format this as "MM/DD/YYYY")
This is searching for band in Town API by artist name. The image i attached with this showed how i sent API request to the Band in town and their results is store in array.
If user didn't provide correct input for specific search the liri will read the log.txt file and will give you some short of result. The function is following.
In this function whatever user search for OMDB movies, spotify song, concert for artist and other(do-what-it-say) it will take the information and it will append those to log.txt.