- Install packages
npm install
- Make sure docker & docker-compose installed
-
Copy the
.env.example
file and replace the filename with.env
. -
Setup an AWS account:
- Fill in the aws crednetials inside the env file.
- Create an S3 bucket then fill the bucket name inside the .env file.
- Create a cloudfront distribution.
- IMPORTANT: if this error occured (
Your account must be verified before you can add new CloudFront resources
) while creating a cloudfront distribution, please see this.
-
Run
npm run dev
-
Run the RTMP Server, HLS transcoder and the S3 directory sync [important]:
npm run docker