Skip to content
프로젝트

remotion-dev/template-react-router

GitHub에서 보기

소개

A Remotion SaaS template with React Router 7 + Remotion Lambda

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Remotion + React Router 8 Starter Kit

Animated Remotion Logo

This is a React Router 8 starter kit with Remotion, @remotion/player and @remotion/lambda built in. It lets you render a video from a React Router app with AWS Lambda.

Getting started

Use Node.js 22.22.0 or newer.

Install dependencies using

npm install

Run the React Router app

Run the example app using:

npm run dev

Edit the video

Start the Remotion Preview (the editor interface) using:

npm run remotion:studio

Render videos with AWS Lambda

Follow these steps to set up video rendering:

  1. Follow the steps in Remotion Lambda setup guide.

  2. Rename the .env.example file to .env.

  3. Fill in the REMOTION_AWS_ACCESS_KEY_ID and REMOTION_AWS_SECRET_ACCESS_KEY values that you got from the first step.

  4. Run the following to deploy your Lambda function and Remotion site:

node deploy.mjs

Rerun this command whenever you have upgraded to a new Remotion version.

  1. Restart the server.

Commands

Start the app in development mode:

npm run dev

Build the app for production:

npm run build

Start the app in production mode (after build is done):

npm run dev

Start the Remotion Studio:

npm run remotion:studio

Render the example video locally:

npx remotion render

Upgrade all Remotion packages:

npx remotion upgrade

Render the example video on AWS Lambda:

npm run remotion:renderlambda

Deploy/Update the Remotion video on S3 and the Lambda function:

node deploy.mjs

Upgrading Remotion

When upgrading Remotion to a newer version, you will need to redeploy your function and update your site using the commands above.
If your functions or sites are already used in production, make sure to not overwrite them - read here for more details about upgrading.

Render progress

The render endpoint uses renderMediaOnLambdaAndStream() and streams progress to the browser. If the connection closes early, the browser uses the progress endpoint to continue following the same render.

Keep the progress endpoint available for recovery. Deploy the render endpoint on a Node.js server with response streaming enabled.

Docs

Get started with Remotion by reading the fundamentals page.
See the React Router Docs to read about the framework.

Help

Join the Remotion Discord server to chat with other Remotion builders.

Issues

Found an issue with Remotion? File an issue here.

License

Note that for some entities a Remotion company license is needed. Read the terms here.

관련 프로젝트 살펴보기

불러오는 중…