Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.85 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.85 KB

Local Development Environment

Environment variables

Create an .env file to the project's root directory and add the values below.
Note the instructions for certain values marked with parenthesis.

POSTGRES_USER = postgres
PASSWORD = (define a custom password for local development)
PORT = 5432
HOST = localhost
DATABASE= expired_videos

CRON_START_TIME=0 0 * * *

POISTAMO_OPENCAST_HOST = (OpenCast development url, for example http://localhost:8080)
POISTAMO_OPENCAST_USER = (insert value from Keepass)
POISTAMO_OPENCAST_PASS = (insert value from Keepass)
POISTAMO_OPENCAST_ARCHIVED_SERIES = (insert the unique identifier of the 'archived' series created in OpenCast)

Start postgres as Docker container

docker run --name exp_videos_postgres -p 5432:5432 -e POSTGRES_PASSWORD=xxxxxxx -e POSTGRES_DB=expired_videos -d postgres:14-alpine

(note: use the same POSTGRES_PASSWORD as defined in the previous step!)

Install application dependencies

Run the following command: npm install

Start application:

Run the following command: node index.js

Environments and deployments

Development environment in OpenShift

main branch deploys to test Openshift project named Poistamo with labeling poistamo-dev development environment communicates with Opencast test environment https://ocast-devel-a1.it.helsinki.fi

Test environment in OpenShift

test branch deploys to test Openshift project named Poistamo with labeling poistamo-test test environment communicates with devel Opencast https://ocast-a1-test.it.helsinki.fi (used for Version Switching)

Production environment in OpenShift

prod branch deploys to production Openshift project named Poistamo with labeling poistamo-prod production environment communicates with production Opencast https://webcast.it.helsinki.fi