Skip to content

mjdilla23/Spoti-Stats-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spoti-Stats

Description:

Spoti-Stats is a C++ command line application which utilizes the Spotify Web API and allows you to search songs, tracks, albums, etc.

Goals:

  • Use HTTP methods to communicate with API
  • Implement solid practices through the use of OOP, design patterns, and practice other basic programming principles

Libraries and Packages:

Installing Libraries:

  • cpprestsdk and nlohmann json

    • On MacOS: $ brew install nlohmann-json cpprestsdk
    • On Linux: $ sudo apt-get install nlohmann-json-dev
  • libcurl:

    1. Install curl:
      Homebrew: $ brew install curl
        or
      Manually: Download package from: https://curl.se/download.html
    2. If any compilation errors occur, try setting:
      $ export LDFLAGS="-L/usr/local/opt/curl/lib"
      $ export CPPFLAGS="-I/usr/local/opt/curl/include"
      

How to Use:

  1. Clone the Spoti-Stats repository: $ git clone https://github.com/michaeldillahunty/Spoti-Stats-cpp.git
  2. $ cd Spoti-Stats-cpp
  3. $ mkdir build
  4. $ cd build
  5. On MacOS:
    Run $ cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2s/lib .. to get all necessary dependencies
  6. make : will create 2 executable files: server and spotify
  7. Run the executable file(s)
    a. To run in Guest Mode (no login required) - Use: $ ./spotify
    b. To run in User Mode (requires Spotify login and authentication):
    a. Run $ ./server
    b. Open another terminal instance and navigate to the same build directory
    - In the second instance run $ ./spotify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors