Tutorial
Let's create a standard project with YouTube Player.
Getting Started
Get started by creating a new site.
What you'll need
- Node.js version 16.14 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
Generate a new site
Generate a new Vite.js site using the vanilla (TypeScript) template.
- NPM
- Yarn
- PNPM
npm create vite
yarn create vite
pnpm create vite
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
Install the dependencies
Install the dependencies for your site with your favorite package manager.
- NPM
- Yarn
- PNPM
cd my-website # or whatever folder you chose
npm install
cd my-website # or whatever folder you chose
yarn install
cd my-website # or whatever folder you chose
pnpm install
Start your site
Run the development server:
- NPM
- Yarn
- PNPM
cd my-website # or whatever folder you chose
npm run dev
cd my-website # or whatever folder you chose
yarn dev
cd my-website # or whatever folder you chose
pnpm dev
Next Steps
To install YouTube Player into your new project, head to Installation.
📄️ Tutorial: Installation
Let's install the YouTube Player into your new project.
📄️ Tutorial: Usage
Let's use the YouTube Player in your new project.
📄️ Tutorial: Playlist Player
Let's use the YouTube Player in your new project.