Skip to content
Language Interpretation and Recognition Interface
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
homework_instructions.md
keys.js
liri.js
log.txt
logger.js
omdb.js
package-lock.json
package.json
random.txt
spotify.js
twitter.js

README.md

LIRI node app

A language interpretation and recognition interface. The is a command line node app which takes commands, hits the Twitter, OMDB and spotify APIs and logs information to the console.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

LIRI requires nodejs and npm to install and run. NPM comes with nodejs, so once you have node downloaded and installed you are good to go. To verify they are installed you can run:

node -v
npm -v

You will also need to sign up for Twitter and Spotify developer accounts in order to get API keys and client secrets. These need to be put in a .env file of the following format.

# Spotify API keys

SPOTIFY_ID=your-id-here
SPOTIFY_SECRET=your-secret-here

# Twitter API keys

TWITTER_CONSUMER_KEY=your-key-here
TWITTER_CONSUMER_SECRET=your-secret-here
TWITTER_ACCESS_TOKEN_KEY=your-token-here
TWITTER_ACCESS_TOKEN_SECRET=your-secret-here

# OMDB API key

OMDB_API_KEY=your-key-here

Installing

Once you have node.js and your .env file ready, clone this repo and put the .env in the root folder. Next run the following commands from the command line:

npm i

That's it! NPM will install the project's dependencies and you're ready to run LIRI. The commands are:

node liri.js tweets
node liri.js spotify <song title>
node liri.js movie <movie title>
node liri.js doIt

Built With

  • node.js - The runtime environment used
  • NPM - Dependency Management

Authors

License

This project is licensed under the MIT License

You can’t perform that action at this time.