LIRI Node Application

This is a LIRI application (Language Interpretation and Recognition Interface) which allows the user to use the command line node app that accepts the values of certain parameters and returns data. For instance, a user can run node liri.js and include the following command and it will output the data related to the user’s request.

  • concert-this for BandsinTown information
  • spotify-this-song for Spotify information
  • movie-this for OMDB information
  • do-what-it-says

Please visit my GitHub page to run the application.

Getting Started

Create your own Spotify and API keys and replace it with the information in the file called .env.

Spotify API Key

SPOTIFY_ID=your-spotify-id SPOTIFY_SECRET=your-spotify-secret

NPM Installations

Navigate to the root of your project. Then in the terminal command line run npm init, this will initalize a package.json for your project. Include the following NPM installations:

  • npm dotenv
  • npm install axios
  • npm node-spotify-api
  • npm install moment

Deployment

Bandsintown

Run node liri.js 'concert-this' 'artist name here'

This will show the concert venue, city, date, and time from in your terminal/bash window.

Spotify

Run node liri.js 'spotify-this-song' 'song name here'

This will show the artist(s), name of song, album song is from, and song preview link in your terminal/bash window.

OMDB

Run node liri.js 'movie-this' 'movie name here'

This will show title of the movie, year movie was released, IMDB Rating, Rotten Tomatoes Rating, country movie was made, language, plot, actors in your terminal/bash window.

Random

Run node liri.js do-what-it-says

Using the fs Node package, LIRI will take the text inside of random.txt and then use it to call one of LIRI’s commands.

Thank you for visiting!