Skip to content

A demo app for handling user-generated videos in a product review context.

Notifications You must be signed in to change notification settings

cloudinary-devs/video-review-demo

Repository files navigation

UGC Sample App for Video Reviews

This is a mockup of a product page that handles user-generated content (UGC) using Cloudinary's advanced capabilities. People can upload a video review of the product, which is moderated for inappropriate content and malware, as well as being processed for video chapters and transcription for captions and translated subtitles. The video is displayed at 16:9 aspect ratio with automatic gravity and captions displayed.

It's a Next.js project bootstrapped with create-next-app, built on Next.js 14 and the Next.js App Router.

Overview

The app serves as a demonstration platform for handling user-generated content in a product review context.

Run the app

To run the app yourself:

  1. Clone or fork this GitHub repo.

  2. In app/config/cloudinary.ts, replace MY_CLOUD_NAME with your Cloudinary product environment cloud name. You can find your Cloud name near the top of the Programmable Media Dashboard of the Cloudinary Console. Sign up for free if you don't yet have a Cloudinary account.

  3. Register for the following add-ons (they all have free tiers):

  4. To try out your app locally, you need to set up a secure tunnel connecting the internet to your locally-running application so that the webhooks sent by Cloudinary on upload are caught and handled by the app. You can use a tool such as Ngrok to do this. Otherwise, you need to deploy the app using a service such as Vercel. Whichever method you choose, make a note of your app's domain (for example, a-b-c-d.ngrok-free.app or a-b-c-d.vercel.app). By default, the app runs on port 3000.

  5. Create an upload preset called ugc-video-langs. (You can use a different name, but if you do, you also need update the uploadPreset value in cloudinary.ts.) See instructions on how to configure your upload preset.

  6. Ensure that the Notification URL in your upload preset is set to:
    https://<your app's domain>/api/moderate

  7. If running locally, run the development server:

    npm i
    

    then

    npm run dev
    

    Then open http://localhost:3000 in your browser to see the app running.

Learn More

Learn more about this app: Cloudinary docs.

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

About

A demo app for handling user-generated videos in a product review context.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published