🎥 Make videos programmatically with React
Editor Starter Docs: Setup
JonnyBurger66c32207d2a7
diff --git a/packages/docs/docs/editor-starter/asset-uploads.mdx b/packages/docs/docs/editor-starter/asset-uploads.mdxnew file mode 100644index 0000000000..7d96b4e9c2--- /dev/null+++ b/packages/docs/docs/editor-starter/asset-uploads.mdx@@ -0,0 +1,67 @@+---+image: /generated/articles-docs-editor-starter-asset-uploads.png+title: Asset uploads+sidebar_label: Asset uploads+id: asset-uploads+crumb: Editor Starter+---++If the user drops in any image, audio, video or GIF, you can configure them to be uploaded to an S3 bucket.++## Setup++- Visit the [S3 console](https://us-east-1.console.aws.amazon.com/s3/home?region=us-east-1).+- Create a new bucket.+ - Uncheck the "Block all public access" checkbox.+ - Disable ACL - if you don't do this, you will get a 400 error when later uploading assets.+- In the bucket settings, go to the "Permissions" tab and enter the following policy into the "CORS" section:++```json+[+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["PUT"],+ "AllowedOrigins": ["*"],+ "ExposeHeaders": [],+ "MaxAgeSeconds": 3000+ }+]+```++- Go to [IAM -> "Users"](https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1#/users) in the AWS console.+- Create a new user with all settings left as default.+- Click "Add permissions -> Add inline policy" and add the following policy:++```json+{+ "Version": "2012-10-17",+ "Statement": [+ {+ "Sid": "Presign",+ "Effect": "Allow",+ "Action": ["s3:PutObject", "s3:PutObjectAcl"],+ "Resource": ["arn:aws:s3:::YOUR_BUCKET_NAME/*"]+ }+ ]+}+```++:::note+Make sure to replace `YOUR_BUCKET_NAME` with the name of your bucket.+:::++- Click "Security credentials".+- Click "Create access key". Select "CLI" as use case.+- Save your access key and secret access key.++In your `.env` file, fill now the following variables:++```txt+AWS_ACCESS_KEY_ID=+AWS_SECRET_ACCESS_KEY=+AWS_REGION=+AWS_BUCKET_NAME=+```++Now, restart the Editor Starter.+When you drop in an asset, it should be uploaded to the S3 bucket!diff --git a/packages/docs/docs/editor-starter/setup.mdx b/packages/docs/docs/editor-starter/setup.mdxnew file mode 100644index 0000000000..025e8c4690--- /dev/null+++ b/packages/docs/docs/editor-starter/setup.mdx@@ -0,0 +1,27 @@+---+image: /generated/articles-docs-editor-starter-setup.png+title: Setup+sidebar_label: Setup+id: setup+crumb: Editor Starter+---++After obtaining the Editor Starter, you should [fork](https://github.com/remotion-dev/editor-starter/fork) it to your own account.++After cloning the repository, you can install the dependencies by running:++```+npm i+```++Run the app using:++```+npm run dev+```++The app may be deployed like any other React Router 7 app, for example by connecting the repository to [Vercel](https://vercel.com).++## Setting up asset uploads++If the user drops in any assets, you can configure them to be uploaded to an S3 bucket. See [Asset uploads](/docs/editor-starter/asset-uploads) for more information.diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex 16aac46c4f..ba3da1092c 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -1337,6 +1337,8 @@ const sidebars: SidebarsConfig = {id: 'editor-starter/features',},items: [+ 'editor-starter/setup',+ 'editor-starter/asset-uploads','editor-starter/features','editor-starter/undo-redo','editor-starter/backend-routes',diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex bf1c5bf75d..66dd0da998 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -1277,6 +1277,15 @@ export const articles = [noAi: false,slug: 'easing',},+ {+ id: 'asset-uploads',+ title: 'Asset uploads',+ relativePath: 'docs/editor-starter/asset-uploads.mdx',+ compId: 'articles-docs-editor-starter-asset-uploads',+ crumb: 'Editor Starter',+ noAi: false,+ slug: 'editor-starter/asset-uploads',+ },{id: 'backend-routes',title: 'Backend routes',@@ -1295,6 +1304,15 @@ export const articles = [noAi: false,slug: 'editor-starter/features',},+ {+ id: 'setup',+ title: 'Setup',+ relativePath: 'docs/editor-starter/setup.mdx',+ compId: 'articles-docs-editor-starter-setup',+ crumb: 'Editor Starter',+ noAi: false,+ slug: 'editor-starter/setup',+ },{id: 'undo-redo',title: 'Undo and Redo',diff --git a/packages/docs/static/generated/articles-docs-editor-starter-asset-uploads.png b/packages/docs/static/generated/articles-docs-editor-starter-asset-uploads.pngnew file mode 100644index 0000000000..c9d88481afBinary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-asset-uploads.png differdiff --git a/packages/docs/static/generated/articles-docs-editor-starter-setup.png b/packages/docs/static/generated/articles-docs-editor-starter-setup.pngnew file mode 100644index 0000000000..eb76b05ac4Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-setup.png differ