rsnext/examples/with-apivideo
Ikko Ashimine 2e2cc5597a
chore(examples): fix typo in [videoId].tsx (#41655)
bellow -> below



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-10-22 19:10:37 +00:00
..
components chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
pages chore(examples): fix typo in [videoId].tsx (#41655) 2022-10-22 19:10:37 +00:00
public chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
style chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
.env.local.example chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
.gitignore chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
next.config.js chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
package.json chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
README.md chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00
tsconfig.json chore(examples): update with-apivideo (#39727) 2022-10-20 17:05:54 +02:00

api.video video uploader

This video uploader and playback app is built with Next.js and api.video, the video first API.

Demo

https://with-apivideo.vercel.app/videos

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-apivideo-app
yarn create next-app --example with-apivideo-app
pnpm create next-app --example with-apivideo-app

Deploy it to the cloud with Vercel (Documentation).

Getting started

1. Create an api.video free account

  1. Go to dashboard.api.video, log in or create a free account.
  2. You can choose to stay in sandbox and have watermark over your videos, or enter in production mode and take advantage of all the features without limitations.

2. Get you API key

  1. Once in the dashboard, find your API keys directly in the /overview or navigate to /apikeys with the "API Keys" button in the side navigation.
  2. Copy your API key, and paste it in .env.local.example as value for API_KEY.
  3. Rename .env.local.example to .env.local.
  4. Install the packages by running npm install, yarn install or pnpm install.
  5. You can now try the application locally by running npm run dev, yarn dev or pnpm dev from the root directory.

3. Deployment

  1. First, push your app to GitHub/GitLab or Bitbucket
  2. Then, go to Vercel and import your new repository.
  3. Add an environment variable with name API_KEY and your API key for value.
  4. Click on deploy 🎉