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)
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!)
Run the following command: npm install
Run the following command: node index.js
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 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)
prod branch deploys to production Openshift project named Poistamo with labeling poistamo-prod production environment communicates with production Opencast https://webcast.it.helsinki.fi