In this assignment, you will make LIRI. LIRI is like iPhone’s SIRI. However, while SIRI is a Speech Interpretation and Recognition Interface, LIRI is a Language Interpretation and Recognition Interface. LIRI will be a command line node app that takes in parameters and gives you back data.
Note: This app is running npm version 6.9.2 on a Mac with node installed.
To get the app to work please download the following npm commands:
npm -v
npm init -y
npm i dotenv
npm i moment
npm i liri-node-app
You will also need to create the following .env
file.
# .env contents format
# Spotify API keys
SPOTIFY_ID=123456789
SPOTIFY_SECRET=1234567890
# OMDBI API key
OMDBI_KEY=123456789
# bandsintown API key
BANDS_KEY=123456789
You will also need to run command.
node liri.js
concert-this
- To run this command use node liri.js concert-this '<Artist Name/Band Name>'
.
Example: node liri.js concert-this 'Lady Gaga'
.
spotify-this-song
- To run this command use node liri.js spotify-this-song '<Song Name>'
.
Example 1: node liri.js spotify-this-song 'Old Town Road'
.
Example 2: node liri.js spotify-this-song
if no song is displayed.
movie-this
- To run this command use node liri.js movie-this '<Movie Name>'
.
Example 1: node liri.js movie-this 'Home Alone'
.
Example 2: node liri.js movie-this
if no movie is displayed.
do-what-it-says
- To run this command use node liri.js do-what-it-says
.
—————————————————————————————
concert-this
- To run this command use node liri.js concert-this '<Artist Name/Band Name>'
.
Example: node liri.js concert-this 'Lady Gaga'
.
spotify-this-song
- To run this command use node liri.js spotify-this-song '<Song Name>'
.
Example 1: node liri.js spotify-this-song 'Old Town Road'
.
Example 2: node liri.js spotify-this-song
if no song is displayed.
movie-this
- To run this command use node liri.js movie-this '<Movie Name>'
.
Example 1: node liri.js movie-this 'Home Alone'
.
Example 2: node liri.js movie-this
if no movie is displayed.
do-what-it-says
- To run this command use node liri.js do-what-it-says
.
During the log.txt stage after running the terminal commands I noticed when viewing preview my Spotify api was show so I removed it using:
.split("=")[0]
to preview your spotify songs paste the url after the preview and add
=SPOTIFY_ID
Note: the ` SPOTIFY_ID ` should not be in quotes and should be written as ` =123456789 ` and not =SPOTIFY_ID123456789