This project is a YouTube clone built using React and Redux Toolkit. It replicates many of the features you'd find on the YouTube platform.
- React: Used as the primary front-end library.
- Redux Toolkit: For state management.
- React Router: For routing within the application.
- Parcel: The bundler used for the project.
- Babel: As the transcompiler for modern JavaScript.
The project's codebase is organized as follows:
-
src/
: This directory contains the source code for the project.components/
: Various components used in the project, each documented with comments explaining its functionality.App.js
: The main application component.index.js
: The entry point of the application.
To run this project locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the required dependencies using
npm install
. - Start the development server with
npm start
.
This will launch the application locally for testing and development.
We welcome contributions to this project. If you have ideas for improvements or find any issues, please open an issue or submit a pull request.
To obtain a Google API Key for this project, follow these steps:
- Go to the Google Developer Console.
- Create a new project.
- Manage APIs and enable the required APIs for your project.
- Create credentials to obtain the API key.
-
Updating Data: To update the data in a Slice of an App store, we dispatch an action using a dispatcher, which, in turn, calls a function to update the slice.
-
Subscribing to Store: We subscribe to the store to get the updated data within no time using
useSelector
.