|
1 | 1 | # Getting Started |
2 | 2 |
|
3 | | -Setting up your video streaming platform has never been easier. With just a few simple steps, you'll be up and running, delivering seamless video experiences. |
| 3 | +Setting up your video streaming platform has never been easier. With just a few simple steps, you'll be up and running, delivering seamless video experiences. |
4 | 4 |
|
5 | 5 | Let's dive in and get you started! |
6 | 6 |
|
@@ -127,6 +127,7 @@ In a scalable architecture, you probably do not want to run the ffmpeg and trans |
127 | 127 | If you'd like to change the port of each service individually, provide the `PORT` environment variable for each service individually. |
128 | 128 |
|
129 | 129 | - [AWS S3](https://aws.amazon.com/s3/) |
| 130 | + |
130 | 131 | - [Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/) |
131 | 132 |
|
132 | 133 | ::: |
@@ -233,4 +234,55 @@ We've already covered how to build Superstreamer locally, and we've also made it |
233 | 234 | $ bun run dev |
234 | 235 | ``` |
235 | 236 |
|
236 | | -::: |
| 237 | +### Quick Development Environment Setup |
| 238 | + |
| 239 | +We have also created a `docker-compose-dev.yml` so you can setup your development environment faster and start getting hands on! |
| 240 | + |
| 241 | +```shell |
| 242 | +# We have prebuilt development containers, see docker/docker-compose-dev.yml |
| 243 | +cd docker |
| 244 | +docker-compose -f docker-compose-dev.yml up |
| 245 | +``` |
| 246 | + |
| 247 | +You can create a file named `config.env.development` for a quick setup. Here is a sample that should work out of the box if default configuration is used: |
| 248 | + |
| 249 | +```shell |
| 250 | +S3_ENDPOINT=http://s3.localhost.localstack.cloud:4566/ |
| 251 | +S3_REGION=us-east-1 |
| 252 | +S3_ACCESS_KEY=test |
| 253 | +S3_SECRET_KEY=test |
| 254 | +S3_BUCKET=sprs-bucket |
| 255 | +
|
| 256 | +# With Docker, use "redis", use "localhost" when you |
| 257 | +# run Redis on your own device. |
| 258 | +REDIS_HOST=localhost |
| 259 | +REDIS_PORT=6379 |
| 260 | +
|
| 261 | +# These are public, they'll end up in client JS. |
| 262 | +PUBLIC_API_ENDPOINT=http://localhost:52001 |
| 263 | +PUBLIC_STITCHER_ENDPOINT=http://localhost:52002 |
| 264 | +PUBLIC_S3_ENDPOINT=http://s3.localhost.localstack.cloud:4566/sprs-bucket |
| 265 | +
|
| 266 | +# Shared secret |
| 267 | +# *** Never EVER expose this publicly, auth tokens are signed with this secret. |
| 268 | +SUPER_SECRET=abc |
| 269 | +
|
| 270 | +# Database |
| 271 | +# Provide a PostgreSQL connection string |
| 272 | +DATABASE_URI=postgresql://postgres:sprs@localhost:5432/sprs |
| 273 | +``` |
| 274 | + |
| 275 | +Run it with: |
| 276 | + |
| 277 | +```shell |
| 278 | +# Install dependencies |
| 279 | +bun install |
| 280 | +
|
| 281 | +# Install binary dependencies, such as ffmpeg |
| 282 | +bun run install-bin |
| 283 | +
|
| 284 | +# RUN! |
| 285 | +bun run dev |
| 286 | +``` |
| 287 | + |
| 288 | +::: |
0 commit comments