stripperfans-streaming v1.0.0
Stripperfans Live Streaming
This is a microservice that manages live streaming.
Install Dependencies and Build
# Install Depndencies
npm install
# Build
npm run build
Run
# Production
npm start
# Development (Using Noddemon)
npm run dev
Using Docker
docker-compose build --build-arg NPM_TOKEN=${NPM_TOKEN}
docker-compose up -d
Using PM2
pm2 start
Environment Variables
All environment variables should be stored in an .env
file. The environment variables are loaded to the application using the npm package dotenv and needs to be defined in the src/config/index.js. The .env.example is an example file that contains the required key/value pairs. Copy the content of the .env.example
file to .env
and set the corresponding values to each key.
CloudWatch Configuration
Cloudwatch requires the AWS_REGION and AWS_CLOUDWATCH_LOG_GROUP environment variables. Logs from the docker container is streamed to a log group on Cloudwatch.
Sequelize Configuration
Sequelize requires DB_USER, DB_PORT, DB_PASSWORD, DB_HOST and DB_NAME environment variables to connect to the database.
Interactive Video Service
Amazon interactive video service is used for handling video streaming. IVS is currently not available in us-east-2 therefore we're using us-east-1. FFMPEG is used to stream to Amazon IVS using the RTMPS protocol.
2 years ago