Skip to content

ash-dodek/SpotiCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎧 SpotiCLI, a CLI based Music Player

Are you a coding geek are tired of constantly switching between spotify and your terminal to change songs? Say no more!

This is a terminal-based music player that lets you play songs right in your terminal! Its easy to use with a clean UI

Screenshot 1

🚀 How it works?

  • Takes input from the user, a song name, just like you search on spotify or youtube
  • Searches the given song by name (via Spotify) means that the program picks song name and artist from spotify
  • Streams audio by searching the song and artist on YouTube and then playing the music using the mpv
  • Control playback using arrow keys
  • Clean, readable CLI interface

Get CLIENT_SECRET AND CLIENT_ID from Spotify api

  • Step 1: Go to Dashboard, there click on create app.
  • Step 2: Enter the required details, like app name, app description, you can enter anything you want
  • Step 3: In the redirect urls, enter anything like google.com or anything, doesnt matter much, or even put the github link of this repo
  • Step 4: At the bottom, it will ask you which APIs you want to use, select Web API.
  • Step 5: Click Save

After the app has been created, copy the Client ID and Client Secret

Then in the root directory, create a .env file, and add the fields CLIENT_ID = (one you copied) and CLIENT_SECRET = (one you copied)

Important

This project uses the MPV Player, so before using this, make sure to install it in your system, otherwise it will not work

If you are on Linux/Fedora, do

sudo dnf install mpv

This will install mpv. If you are on windows, visit the website of MPV Player and after installing make sure to add mpv in path


Using the player:

git clone https://github.com/ash-dodek/SpotiCLI.git
cd SpotiCLI
npm install

Then run

node index

About

A CLI based music player, which lets you play music in terminal by their name!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published