Skip to content

niviamanjee/liri-node-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liri-bot-app

This app is an interactive system using Node.js. Users can retrieve information about a concert (based on an artist search), a movie, or a song, and the liri bot uses API's to get the information the user requests. The purpose of the app is to demonstrate the basic functionality of Node.js and how it interacts with different packages, such as API request package, Axios, spotify-node-api package, and moment.js package, to carry out api request functions.

Technologies Used

  • Node.js
  • Axios
  • Node-Spotify-API
  • OMDB API
  • Bands in Town API
  • Moment
  • DotEnv
  • File-system

App Instructions

Liri bot filters search requests by the user throught the use of four topic names: concert-this, movie-this, spotify-this-song, and do-what-it-says.

concert-this

Concert Search Demo

  1. Enter "node liri-js" and the topic search "concert-this".
  2. Enter the name of any artist you would like to search.
  3. The Liri Bot will then return a venue, venue location, and date of the artist's concert.

movie-this

Movie Search Demo

  1. Enter "node liri-js" and the topic search "movie-this".
  2. If you do not enter the name of any movie, liri bot will by default return to you the information of the movie "Mr. Nobody".
  3. Otherwise, you can search any movie and liri-bot will return to you the title of the movie, the movie's release date, IMDB rating, Rotten Tomatoes rating, country of production, movie language, movie plot and movie actors.

spotify-this-song

Song Search Demo

  1. Enter "node liri-js" and the topic search "spotify-this-song".
  2. Search any song and liri-bot will return to you the artists, song name, preview link of the Spotify song, and the album the song is from.
  3. If you do not search a specific song, liri bot will by default return the information of the song "The Sign of the Times" by Harry Styles as shown below.

Song Default Search Demo

do-what-it-says

File System Demo

  1. Enter "node liri-js" and the topic search "concert-this".
  2. Type in the topic "do-what-it-says" and using the file system package, liri bot will read what is in the inner files which reads "spotify-this-song, 'I want it that way'", and perform those functions in the command line. Liri bot will return information about the song "I Want it That Way" by the Backstreet Boys.

Logging the Data

All the information you search and the bot returns about concerts, movies, and songs will be logged in an inner file called log.txt. When the information gets successfully logged, the liri bot will display the phrase "Data is appended to file successfully". This feature is demonstrated below.

Data Log Demo

About

This app uses Node.js to take in command line requests for songs, movies, and concerts. Then using axios, Omdb, Spotify, bands in town, and moment, the app will return song and movie searches the user has made.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors