UniversityofHelsinki / unitube-ilmoittamo

Unitube ilmoittamo palvelu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development Environment variables

Create and add environment variables in .env file:
POSTGRES_USER = postgres
PASSWORD = xxxxxx
PORT = 5432
HOST = localhost
DATABASE= expired_videos

CRON_START_TIME_THIRTEEN_DAYS=30 1 1-30/13 * * CRON_START_TIME_SIX_DAYS=30 1 1-30/6 * * CRON_START_TIME_THREE_DAYS=30 1 1-30/3 * *

ILMOITTAMO_OPENCAST_HOST = (OpenCast development url)
ILMOITTAMO_OPENCAST_USER = (Local Opencast user)
ILMOITTAMO_OPENCAST_PASS = (Local Opencast password)

ILMOITTAMO_EMAIL_SENDER_HOST = http://localhost:3003 or http://127.0.0.1:3003 if localhost address does not work (Node switched DNS resolution order since version 17 ->) IAM_GROUPS_HOST = https://gw-api-test.it.helsinki.fi IAM_GROUPS_API_KEY = xxxxxxxxxxxxxxxxxxxx

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

Install application dependencies

npm install

Start application:

node index.js

Environments and deployments

Local environment

local environment communicates with postgres instance installed on your local environment using postgres alpine docker container local environment communicates with opencast instance installed on your local environment using docker container

Development environment in OpenShift

main branch deploys to test Openshift project named Poistamo with labeling ilmoittamo-dev dev environment communicates with postgres instance called poistamo_dev at possu.it.helsinki.fi 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 imoittamo-test test environment communicates with postgres instance called poistamo_test at possu.it.helsinki.fi 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 ilmoittamo-prod production environment communicates with postgres instance called poistamo at possu.it.helsinki.fi production environment communicates with production Opencast https://webcast.it.helsinki.fi

About

Unitube ilmoittamo palvelu

License:MIT License


Languages

Language:JavaScript 99.3%Language:Dockerfile 0.7%