- clone this git repo using this link
https://github.com/arkumari2000/youtube-clone.git
- run
npm install
after entering in the folder - now install axios:
npm install --save axios
- get your youtube api key
- run the project
npm start
- You need a Google Account to access the Google API Console, request an API key, and register your application.
- Create a project in the Google Developers Console and obtain authorization credentials so your application can submit API requests.
- After creating your project, make sure the YouTube Data API is one of the services that your application is registered to use: a. Go to the API Console and select the project that you just registered. b. Visit the Enabled APIs page. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
- If your application will use any API methods that require user authorization, read the authentication guide to learn how to implement OAuth 2.0 authorization.
- Select a client library to simplify your API implementation.
- Familiarize yourself with the core concepts of the JSON (JavaScript Object Notation) data format. JSON is a common, language-independent data format that provides a simple text representation of arbitrary data structures. For more information, see json.org.
you can watch this video of how to get youtube api key if you are facing any problem How to create a YouTube API key (2020)
- get your api key
- go in the folder
src/api/youtube_api
- now paste you API key in the line
const KEY = {YOUR API KEY};
And now you can search anything like you search in youtube in the search bar.