Liri-Node-App

LIRI (Language Interpreting and Recognition Interface) Node Terminal App

In this project we were asked to create a language interpreting and recognition interface, or LIRI, that users could use to input a simple command to the terminal, along with some further search criteria, and be given clear and updated information for that artist or movie or whatever the user would be searching for. The user is able to search for an artist/band, song, or movie, and then using API calls, be given either show locations and times for a band’s next show using the Bands In Town API, or the rating, cast and synopsis for any movie through OMDb’s API, or lastly through Spotify’s API, search by any song name to find that release year, album, etc.

Getting Started

To run the LIRI Node Application after cloning the repository, run ‘npm install’ to install required node modules (including FS, Axios, Spotify and Moment), then simply open a terminal to run a Node JS application, and then the four options users can run are:

Throughout this project, the aspects that I found to go smoothy was finding, downloading and implementing the API keys, calling the query URLs, and setting variables to be used for the functions. The bugs that I had encountered with this project was after writing the function code for the ‘concert’, ‘song’, and ‘movie’, and then figuring out how the code for those would be added to the ‘doWhat’ function. Not wanting to copy and paste long lines of code over again, I worked with two associates to end up writing one ‘querySearch’ that can be added in each function (to shorten each), and then be able to call those functions in the ‘doWhat’ function without having to add excess code. After that edit was made to the liri.js file, the project became much easier to understand through the code, and also with implementing each function. In the future, the ability for all the information found through each search will be appended to a txt file for the users’ records.



BandsInTown - 'concert-this' Request concert-this - Code Spotify - 'song-this' Request OMDb - 'movie-this' Request do-what-it-says Song Requests do-what-it-says Movie Requests do-what-it-says Concert Requests


Built With

Authors