Skip to content

liri-node-app was developed using node.js as a back-end-server that called the different API . It takes different command from users and generates different command line results.

Notifications You must be signed in to change notification settings

lamashree/liri-node-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liri-node-app

Overview

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.

App Command Lines

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

spotify-this song

  • node liri.js "Name of the song" search will produced given output.
  1. Artist(s)
  2. Name of the song
  3. Album
  4. Song preview spotify URL

API-request

This command line using the API request to spotify. spotify API request and response

Movie-this

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.

Movie Response data

concert-this

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.

concert API call and Response data

do-what-it-says

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. function for do what it says

function for log.txt

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. function for that will write in log.txt

About

liri-node-app was developed using node.js as a back-end-server that called the different API . It takes different command from users and generates different command line results.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published