Giter Club home page Giter Club logo

liri's Introduction

LIRI

Based on user input this Nodejs app will search Spotify for songs, Bands in Town for a band's concerts, and OMDB for movies. Then it will log the result in the terminal console and add it to log.txt.

Structure

.
├── README.md
├── api.js
├── do-this.js
├── keys.js
├── liri.js
├── logs
│   ├── logger.js
│   └── results.log
├── package-lock.json
├── package.json
└── random.txt

How to Get Up and Running

You can use the LIRI app by following these steps:

  1. Clone the repository into your local dev environment.
  2. Install dependencies
npm install

Usage

Request the info your looking for with a single command:

node liri [concert-this | movie-this | spotify-this | do-what-it-says] query
  • concert-this: search the Bands in Town API to get a list of a band's tour dates and locations.
  • movie-this: search the OMDB API to get the requested movie's plot, cast, ratings and more.
  • spotify-this: search the Spotify to get the information on any song.
  • do-what-it-says: doesn't take an input; this action does what the text says in random.txt.

liri's People

Contributors

desrogers avatar

liri's Issues

make prints pretty

console.log(JSON.stringify(response, null, 4));

console.log(\r\n\r\n);
console.log("concert and song stuff");

node lessons 22-24

spotify-this-song

  • This will show the following information about the song in your terminal/bash window

    • Artist(s)

    • The song's name

    • A preview link of the song from Spotify

    • The album that the song is from

  • If no song is provided then your program will default to "The Sign" by Ace of Base.

  • You will utilize the node-spotify-api package in order to retrieve song information from the Spotify API.

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.

  • It should run spotify-this-song for "I Want it That Way," as follows the text in random.txt.
  • Edit the text in random.txt to test out the feature for movie-this and concert-this.

bonus

  • In addition to logging the data to your terminal/bash window, output the data to a .txt file called log.txt.

  • Make sure you append each command you run to the log.txt file.

  • Do not overwrite your file each time you run a command.

movie-this

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.'

  • You'll use the axios package to retrieve data from the OMDB API. Like all of the in-class activities, the OMDB API requires an API key. You may use trilogy.

concert-this

"https://rest.bandsintown.com/artists/" + artist + "/events?app_id=codingbootcamp"

render the

  • name
  • venue
  • date (use moment.format(MM/DD/YYYY))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.