Skip to content

tv2/alba-server

Repository files navigation

Alba Server

Conventional Commits

Welcome to the Alba ecosystem. This is the central server for rundown execution and management.

Requirements

  • NodeJS >= 16.20
  • Yarn
  • A running MongoDB instance with an initialized replica set.
  • Optional: Docker and Docker Compose

Usage

Building

The server can be built to JavaScript by:

  1. Install dependencies with yarn install.
  2. Build to the folder /dist with yarn build.
  3. To start the built application, run yarn start.

Note

The project is intended to be run as a Docker container and is currently published to the tv2media space.

Configuration

Configuration is done through environment variables:

Variable Description Example
MONGO_URL The connection URL to the MongoDB instance. MONGO_URL=mongodb://localhost:3001
INEWS_HOST The host and port for the REST API of the Sofie iNews Gateway. INEWS_HOST=localhost:3007
PLAYOUT_GATEWAY_HOST The host and port for the REST API of the Sofie Playout Gateway. PLAYOUT_GATEWAY_HOST=localhost:3009
INEWS_GATEWAY_HOST The websocket URL used to connect to the Alba iNews Gateway. INEWS_GATEWAY_HOST=ws://localhost:3008

Running with development server

You can start a development server with yarn watch.

Running alongside Sofie

As Alba is being rewritten, based on Sofie, in chunks, it co-exists with Sofie and relies on Sofie for functionalities like rundown ingest and playout control. With time this will gradually be moved over to Alba.

The repository has a Docker compose setup for Sofie, which you need Docker and Docker compose in order to use. For now, it is possible to start a Sofie instance by:

  1. Starting a mongo database:
    1. Run yarn start-database.
    2. Wait til the Docker container is started.
    3. Run yarn init-replica-set
  2. Start Sofie ecosystem by running yarn start-sofie. For more information see the README for Sofie Docker Compose setup.

Related projects

At TV 2 the Alba server is used in conjunction with the Alba TV 2 server and the Angular web client. All 3 applications are needed to run Alba at TV 2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •