Coder Social home page Coder Social logo

mileshan / sora-next-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soraweb/sora-next-web

0.0 0.0 0.0 981 KB

Sora AI Video Generator by Get Sora App

Home Page: https://web.getsoraapp.com

JavaScript 1.41% TypeScript 98.29% CSS 0.30%

sora-next-web's Introduction

Sora Next Web

Sora Next Web

Live Demo

https://web.getsoraapp.com

preview

Quick Start

  1. clone project
git clone https://github.com/SoraWeb/sora-next-web
  1. install dependencies
cd sora-next-web
yarn
  1. set environmental values

rename .env.template to .env.local under root dir, and add the env vars

NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
CLOUDINARY_FOLDER=<Your cloudinary folder contains video files>

Sign up your free Cloudinary account to get your Cloudinary details

Also change the next.config.js file, to allow accessing files from cloudinary

remotePatterns: [
      {
        protocol: "https",
        hostname: "res.cloudinary.com",
        pathname: "/<NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME>/**",
      },
    ],
```

4. videos folder structure

You will need to put videos in the following structure in the Cloudinary:

<CLOUDINARYFOLDER>//nhdp.mp4 <CLOUDINARYFOLDER>//nhdp.webm <CLOUDINARYFOLDER>//hd1080p.mp4 <CLOUDINARYFOLDER>//hd1080p.webm


![cloudinary](./public/cloudinary.png)

Where video file starts `nhdp_` for preview and `hd1080p_` for details view.

If you prefer different logic of reading files, change the logic in `organizeVideos.ts`

5. local development

```shell
yarn dev

open http://localhost:3000 for preview

Credit to

Subscribe to the coming Sora App

you can subscribe our mailing list at Get Sora App

Sora Prompt Helper

try our Sora Prompt Helper here

Support

Buy Me A Coffee

sora-next-web's People

Contributors

soraweb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.