Ever wanted to explore random music using a ruby program? If so, this is just the app for you! it allows users to generate randomized youtube music links that you can easily copy and paste into your browser!
- Fork and clone the repo to your local machine with SSH:
git@github.com:Ethan-t-n/youtube_music_link_generator.git
. - Open your terminal and go into the youtube_music_link_generator directory.
- Install gems by running
gem install google-api-client
in your terminal. - Change into the lib directory.
- Register for your YouTube API key. IMPORTANT: Registering for your YouTube API key instructions will be down below.
- Stop here for now (Please complete registering for YouTube API Key steps down below before moving on to steps 7 and 8).
- Run
rspec
to see test results as well as randomized link. - copy randomized link and paste it into your browser.
- Go to the Google Cloud Console.
- If you don't have a Google Cloud account, create one by following the prompts. Otherwise, sign in to your account.
- Click on the project drop-down menu at the top of the page and click "New Project".
- Give your project a name and click "Create".
- Once your project is created, go to the API Library by clicking on the "Navigation menu" button in the upper left corner of the page, then select "APIs & Services" > "Library".
- Search for the YouTube Data API and click on it to open its details page.
- Click on the "Enable" button to enable the API for your project.
- Once the API is enabled, click on the "Create Credentials" button to create your API key.
- Select "API key" from the dropdown menu and follow the prompts to create your key.
- Copy the API key, go into the terminal and run
export YOUTUBE_API_KEY=paste_your_api_key_in_here
Planning on letting users generate a random link by genre of music.