devsdmf / spotify-cli

Terminal client for Spotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify CLI

Build Status codecov Go Report Card

Spotify Client which runs in the terminal.

How does it look like?

screenshot

How does it work?

What are the components of spotify-cli?

screenshot

How components talk with each other?

screenshot

How to run it?

Prerequisites

  1. Linux/MacOS operating system
  2. Google Chrome browser installed
  3. Premium Spotify Account
  4. Created Spotify Application under https://beta.developer.spotify.com/dashboard/applications (set redirect URI to http://localhost:8888/spotify-cli)

Go to https://beta.developer.spotify.com/dashboard/applications, find created earlier Spotify Application, find Client ID and Client Secret, and put them in environment variables

export SPOTIFY_CLIENT_ID=xxxxxxxxxxxxx
export SPOTIFY_SECRET=yyyyyyyyyyyyyyyy

Running from release

  1. Download release for your OS/architecture under https://github.com/jedruniu/spotify-cli/releases
  2. Unpack it (i.e. with tar -xvf spotify-cli_1.0.1_Darwin_x86_64.tar spotify)
  3. Run it (./spotify-cli)

Building from sources

Additional prerequisities

  1. Go language installed

Steps

  1. Get repository
go get github.com/jedruniu/spotify-cli
  1. Go to directory with spotify-cli
cd $GOPATH/src/github.com/jedruniu/spotify-cli
  1. Install application
go install
  1. Run application
spotify-cli

Running tests

go test -v

Built With

  • tui - Terminal User Interface framework
  • Spotify - Spotify Web API Wrapper

About

Terminal client for Spotify

License:MIT License


Languages

Language:Go 95.7%Language:HTML 4.3%