A command line Music Library application. The application accepts a file path to the music mp3 files, parses them and is able to display, search, create and 'play' the music.
-
Clone the repo to your local machine.
$ git clone https://github.com/andela-hkagumba/music-library.git
-
cd
into the music-library folder.$ cd music-library
-
Install dependencies
$ bundle install
or without test and development dependencies;
$ bundle install --without test development
To start the library cli execute the musiclibrary
file in the bin
directory
$ bin/musiclibrary
----------------------------
Welcome to Music Library
----------------------------
Commands:
list songs - List all songs.
list artists - List all artists.
list genres - List all genres.
play song - Play a single song (specify the song number).
list artist - List songs of artist.
list genre - List songs of certain genre.
exit - Exit the Library.
♯ ~
-
list songs
:♯ ~ list songs 1. Action Bronson - Larry Csonka - indie 2. Adele - Rolling In the Deep - folk 3. Adele - Someone Like You - country 4. AraabMuzik - Streetz Tonight - folk 5. ASAP Rocky - Peso - dance 6. Atlas Sound - Mona Lisa - pop 7. Azealia Banks - 212 - hip-hop 8. Battles - Ice Cream (Feat. Matias Aguayo) - rock 9. Beyonce - 1+1 - house ...
-
play song
e.g. enter "1" for the first song:♯ ~ play song Please enter the song number. 1 Playing Action Bronson - Larry Csonka - indie
-
list artist
e.g enter "Adele":♯ ~ list artist Please enter the artist name. Adele Adele - Rolling In the Deep - folk Adele - Someone Like You - country
You need to have installed test dependencies. If you ran:
$ bundle install
You are good and can continue to testing the application. Otherwise proceed to install all dependencies.
Run tests:
$ rspec spec