Code Monkey home page Code Monkey logo

liri-node-app's Introduction

LIRI

LIRI is a command line interface that searches Spotify for songs, Bands in Town for concerts, and OMDB for movies. It can also search via an input file.

Running the Application

You will need Node.js to install the required node modules with npm install. Afterwards, you'll have to create a .env file with your own Spotify API key, like so:

# Spotify API keys

SPOTIFY_ID=your-spotify-id
SPOTIFY_SECRET=your-spotify-secret

The Commands

node liri.js concert-this <artist/band name here>

Searches the Bands in Town Events API for an artist, and displays the following information about each event:

  • Name of the venue
  • Venue location
  • Date of the event

node liri.js spotify-this-song <song name here>

Searches Spotify for a song, and shows the following information for each result:

  • Artist(s)
  • The song's title
  • A preview link
  • Album

Defaults to "The Sign" by Ace of Base if no query is provided.

node liri.js movie-this <movie name here>

Searches the OMDB API for a movie, and outputs the following information:

  • Title
  • Year released
  • IMDB rating
  • Rotten Tomatoes rating
  • Country where the movie was produced
  • Language
  • Plot
  • Actors

Defaults to "Mr. Nobody" if no query is provided.

node liri.js do-what-it-says

Reads from random.txt and executes one of the above commands. Currently runs spotify-this-song with "I Want it That Way".

Output

Sample output can be found in log.txt.

user-flow-gif

liri-node-app's People

Contributors

nehasahay avatar

Watchers

James Cloos avatar

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.