This is our first assignment after we studied NodeJS. This app is called LIRI, which takes in parameters from command line and gives you back data.
liri.js can take in one of the following commands:
node liri.js concert-this <artist/band name here>
This will search the Bands in Town Artist Events API ("https://rest.bandsintown.com/artists/" + artist + "/events?app_id=codingbootcamp"
) for an artist and render the following information about each event to the terminal:
node liri.js spotify-this-song '<song name here>'
Artist(s)
The song's name
A preview link of the song from Spotify
The album that the song is from
node liri.js movie-this '<movie name here>'
This will output the following information to your terminal/bash window:
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.
If the user doesn’t type a movie in, the program will output data for the movie ‘Mr. Nobody.’ If you haven’t watched “Mr. Nobody,” then you should: http://www.imdb.com/title/tt0485947/ It’s on Netflix!
node liri.js do-what-it-says
.env
file for it to work. This file should have the content below.# Spotify API keys
SPOTIFY_ID=your-spotify-id
SPOTIFY_SECRET=your-spotify-secret
dotenv
package to set what are known as environment variables to the global process.env
object in node. These are values that are meant to be specific to the computer that node is running on.