You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+83-27Lines changed: 83 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,8 @@
3
3
-[Remix Docs](https://remix.run/docs)
4
4
-[Remotion Docs](https://remotion.dev/docs)
5
5
6
-
## This template:
7
-
8
6
This is a [Remix starter kit](https://remix.run/docs) with [Remotion](https://remotion.dev), [`@remotion/player`](https://remotion.dev/player) and [`@remotion/lambda`](https://remotion.dev/lambda) built in.
9
-
It lets you render a video from a remix app with Amazon Lambda.
7
+
It lets you render a video from a Remix app with AWS Lambda.
10
8
11
9
Check the online version here: [https://remotion-remix-template.vercel.app/](https://remotion-remix-template.vercel.app/)
Clone the repository and install dependencies using `npm i`.
17
+
Install dependencies using
18
+
19
+
<!-- create-video will replace this with the package manager specific command -->
20
20
21
-
> If you prefer to use Yarn, run `yarn`.
22
-
> If you prefer to use pnpm, run `pnpm i`.
21
+
```
22
+
npm install
23
+
```
23
24
24
-
Run the example app using `npm run dev`.
25
+
## Run the Remix app
26
+
27
+
Run the example app using:
28
+
29
+
```
30
+
npm run dev
31
+
```
32
+
33
+
## Edit the video
34
+
35
+
Start the Remotion Preview (the editor interface) using:
36
+
37
+
```
38
+
npm run remotion:preview
39
+
```
25
40
26
-
## Set up rendering via AWS Lambda
41
+
## Render videos with AWS Lambda
27
42
28
-
1. Follow the [Remotion Lambda setup guide](https://www.remotion.dev/docs/lambda/setup).
43
+
Follow these steps to set up video rendering:
44
+
45
+
1. Follow the steps in [Remotion Lambda setup guide](https://www.remotion.dev/docs/lambda/setup).
29
46
2. Rename the `.env.example` file to `.env`.
30
47
3. Fill in the `REMOTION_AWS_ACCESS_KEY_ID` and `REMOTION_AWS_SECRET_ACCESS_KEY` values that you got from the first step.
31
-
4. Run
48
+
4. Run the following to generate a [Serve URL](https://www.remotion.dev/docs/terminology#serve-url) and use it to fill in the `REMOTION_AWS_SERVE_URL` value:
32
49
33
50
```
34
-
npm run remotion:lambda:site:update
51
+
npm run remotion:deploysite
35
52
```
36
53
37
-
to generate a [Serve URL](https://www.remotion.dev/docs/terminology#serve-url) and use it to fill in the `REMOTION_AWS_SERVE_URL` value.
38
-
39
-
5. Run
54
+
5. Run the following [to deploy a Lambda function](https://www.remotion.dev/docs/lambda/cli/functions#deploy) and fill in the function name as `REMOTION_AWS_FUNCTION_NAME`.
40
55
41
56
```
42
-
remotion:lambda:function:deploy
57
+
npm run remotion:deployfunction
43
58
```
44
59
45
60
6. Restart the Remix server.
46
61
47
-
to deploy a Lambda function and fill in the function name as `REMOTION_AWS_FUNCTION_NAME`.
48
-
49
-
## Scripts
62
+
## Commands
50
63
51
64
### Remix
52
65
53
-
-`yarn build` - build the app
54
-
-`yarn dev` - start the app in development mode
55
-
-`yarn start` - start the app in production mode
66
+
Start the app in development mode:
67
+
68
+
```
69
+
npm run dev
70
+
```
71
+
72
+
Build the app:
73
+
74
+
```
75
+
npm run build
76
+
```
77
+
78
+
Start the app in production mode (after build is done):
79
+
80
+
```
81
+
npm start
82
+
```
56
83
57
84
### Remotion
58
85
59
-
-`yarn remotion:start`: start the remotion preview
60
-
-`yarn remotion:build`: render the example video
61
-
-`yarn remotion:upgrade`: upgrade all Remotion packages
62
-
-`yarn remotion:lambda:build`: render the video with lambda
63
-
-`yarn remotion:lambda:function:deploy`: deploy the AWS lambda function
64
-
-`yarn remotion:lambda:site:update`: update the AWS lambda site
0 commit comments