Click here to view demo video of app
Technologies used: Node JS, JavaScript, API, JSON, AXIOS, Moment JS.
LIRI is a Language Interpretation and Recognition Interface much like SIRI for the iPhone is a Speech Interpretation and Recognition Interface.
It is a Command Line Node app that takes in parameters and gives back data.
LIRI will search Bands in Town for concerts, Spotify for songs, and OMDB for movies.
The app will send requests using the AXIOS Node package to the Bands in Town, Spotify and OMDB APIs, and then retrieve data.
node liri concert-this artistname
node liri spotify-this-song songname
node liri movie-this movietitle
node liri do-what-it-says
By entering the following into the command line:
node liri concert-this artistname
the app will search the Bands in Town Artist Events API for an artist and render the following information about each event:
-
Name of venue
-
Venue location
-
Date of event (using moment to format date as "MM/DD/YYYY")
In this example we set the artist name to be "arianagrande".
The command line is:
node liri concert-this arianagrande
By entering the following into the command line:
node liri spotify-this-song songname
the app will search the Spotify API for a song and render the following information:
-
Artist
-
Song name
-
Preview link of song from Spotify
-
Album where song appears
If no song is provided by the user, then the app defaults to the song "ghostbusters".
In the first example, we provide no song.
The command line is:
node liri spotify-this-song
In the second example, we set the song name to be "blackbird".
The command line is:
node liri spotify-this-song blackbird
By entering the following into the command line:
node liri movie-this movietitle
the app will search the OMDB API for a movie title and render the following information:
-
Title of movie
-
Year
-
IMDB rating
-
Rotten Tomatoes rating
-
Country where movie was produced
-
Language of movie
-
Plot
-
Actors
If no movie title is provided by the user, then the app defaults to the movie "mr.nobody".
In the first example, we provide no movie title.
The command line is:
node liri movie-this
In the second example, we set the movie title to be "avengers".
The command line is:
node liri spotify-this-song avengers
By entering the following into the command line:
node liri do-what-it-says
and using the fs node package, LIRI will read the text inside of random.txt and then use it to call one of LIRI's commands.
In this example, the text inside random.txt is
spotify-this-song, i want it that way
To call different LIRI commands we can modify the text inside random.txt to be:
concert-this, the black keys
movie-this, iron man
The command line for this example is:
node liri do-what-it-says