A web app for creating YouTube playlists from NTS mixes.
$ git clone git@github.com:tedigc/nts-mix.git
$ yarn
$ yarn start
Before you actually start working with YouTube, you'll need to create a project using the Google Developer Console and obtain both an API key and an OAuth Client ID. Follow the steps below to get started.
- Head to the Google Developer Console
- Create a new project
- Ensure your project is selected, and from the menu on the left hand side of the dashboard, select "Library".
- Search for "YouTube" and select the result "YouTube Data API v3".
- Click "enable" to add it to your project, then return to the dashboard.
- Navigate to the "Credentials" page using the menu on the left hand side of the dashboard.
- Click the "Create Credentials" button and select "API Key".
- Click "Restrict Key" and give your key a sensible name, and apply any restrictions (restrictions aren't necessary but are useful for security purposes)
- Save your changes and return to the "Credentials" page
- Click the "Create Credentials" button and select "OAuth client ID".
- Click the "Configure consent screen" button and provide the necessary product name and email address. Click save.
- Select "Web Application" as the application type, name your client ID, and apply necessary restrictions.
- Create a file
config.js
in the directoryclient/src/
and populate it with the following:
export default {
apiKey: '<YOUR_API_KEY_HERE>',
clientId: '<YOUR_CLIENT_ID_HERE>'
};
NOTE: Ensure you keep your authorisation credentials out of your version control. Do not remove config.js
or either of the build
directories from the .gitignore
file.
Author: tedigc