GitHub repo for
Switch branches/tags
jenkins-biblo_prod-04-prod1-28 jenkins-biblo_prod-04-prod1-27 jenkins-biblo_prod-04-prod1-26 jenkins-biblo_prod-04-prod1-25 jenkins-biblo_prod-04-prod1-24 jenkins-biblo_prod-04-prod1-23 jenkins-biblo_prod-04-prod1-22 jenkins-biblo_prod-04-prod1-20 jenkins-biblo_prod-04-prod1-19 jenkins-biblo_prod-04-prod1-18 jenkins-biblo_prod-04-prod1-16 jenkins-biblo_prod-04-prod1-15 jenkins-biblo_prod-04-prod1-14 jenkins-biblo_prod-04-prod1-13 jenkins-biblo_prod-04-prod1-12 jenkins-biblo_prod-04-prod-69 jenkins-biblo_prod-04-prod-68 jenkins-biblo_prod-04-prod-67 jenkins-biblo_prod-04-prod-66 jenkins-biblo_prod-04-prod-65 jenkins-biblo_prod-04-prod-64 jenkins-biblo_prod-04-prod-63 jenkins-biblo_prod-04-prod-62 jenkins-biblo_prod-04-prod-61 jenkins-biblo_prod-04-prod-60 jenkins-biblo_prod-04-prod-59 jenkins-biblo_prod-04-prod-58 jenkins-biblo_prod-04-prod-57 jenkins-biblo_prod-04-prod-56 jenkins-biblo_prod-04-prod-55 jenkins-biblo_prod-04-prod-54 jenkins-biblo_prod-04-prod-53 jenkins-biblo_prod-04-prod-52 jenkins-biblo_prod-04-prod-51 jenkins-biblo_prod-04-prod-50 jenkins-biblo_prod-04-prod-49 jenkins-biblo_prod-04-prod-48 jenkins-biblo_prod-04-prod-47 jenkins-biblo_prod-04-prod-46 jenkins-biblo_prod-04-prod-45 jenkins-biblo_prod-04-prod-44 jenkins-biblo_prod-04-prod-43 jenkins-biblo_prod-04-prod-42 jenkins-biblo_prod-04-prod-41 jenkins-biblo_prod-04-prod-40 jenkins-biblo_prod-04-prod-39 jenkins-biblo_prod-04-prod-38 jenkins-biblo_prod-04-prod-37 jenkins-biblo_prod-04-prod-36 jenkins-biblo_prod-04-prod-35 jenkins-biblo_prod-04-prod-34 jenkins-biblo_prod-04-prod-33 jenkins-biblo_prod-04-prod-32 jenkins-biblo_prod-04-prod-31 jenkins-biblo_prod-04-prod-30 jenkins-biblo_prod-04-prod-29 jenkins-biblo_prod-04-prod-28 jenkins-biblo_prod-04-prod-27 jenkins-biblo_prod-04-prod-26 jenkins-biblo_prod-04-prod-25 jenkins-biblo_prod-04-prod-24 jenkins-biblo_prod-04-prod-23 jenkins-biblo_prod-04-prod-22 jenkins-biblo_prod-04-prod-21 jenkins-biblo_prod-04-prod-20 jenkins-biblo_prod-04-prod-19 jenkins-biblo_prod-04-prod-18 jenkins-biblo_prod-04-prod-17 jenkins-biblo_prod-04-prod-16 jenkins-biblo_prod-04-prod-15 jenkins-biblo_prod-04-prod-14 jenkins-biblo_prod-04-prod-13 jenkins-biblo_prod-04-prod-12 jenkins-biblo_prod-04-prod-11 jenkins-biblo_prod-04-prod-10 jenkins-biblo_prod-04-prod-9 jenkins-biblo_prod-04-prod-8 jenkins-biblo_prod-04-prod-7 jenkins-biblo_prod-04-prod-6 jenkins-biblo_prod-04-prod-5 jenkins-biblo_prod-04-prod-4 jenkins-biblo_prod-04-prod-3 jenkins-biblo_prod-04-prod-2 jenkins-biblo_prod-04-prod-1 jenkins-biblo-03-buildProduction-169 jenkins-biblo-03-buildProduction-168 jenkins-biblo-03-buildProduction-167 jenkins-biblo-03-buildProduction-166 jenkins-biblo-03-buildProduction-165 jenkins-biblo-03-buildProduction-164 jenkins-biblo-03-buildProduction-163 jenkins-biblo-03-buildProduction-162 jenkins-biblo-03-buildProduction-161 jenkins-biblo-03-buildProduction-160 jenkins-biblo-03-buildProduction-159 jenkins-biblo-03-buildProduction-158 jenkins-biblo-03-buildProduction-157 jenkins-biblo-03-buildProduction-156 jenkins-biblo-03-buildProduction-155 jenkins-biblo-03-buildProduction-154
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


GitHub tag David David Build Status Coverage Status Code Climate bitHound Overall Score

As default the application will load on localhost:8080. Se a running example on

How to install and run the application

// Build and install the application
git clone
npm install
npm run build

// create config file
mv config.example.js config.js

// fill out the blanks in the config file. 
// NB! a lot of the services are restricted by DBC

// Start the application
 npm run serve

Environment Varibles

The following environment variables can be used to override default settings in the application

  • EMAIL_REDIRECT Used when a user creates a new account. The value given in EMAIL_REDIRECT will be used as basepath in the link that'll appear in the confirmation email sent to the user. Typically you'll want the value in EMAIL_REDIRECT to be the same as the basepath for the given site the user is signing up at. I.e

    The default value is localhost

  • KAFKA_TOPIC (inherited from dbc-node-logger) This defines which topic in Kafka the log messages should be associated with

  • KAFKA_HOST (inherited from dbc-node-logger) String that defines the Zookeeper connectionstring. Should be defined as host:port. see winston-kafka-transport and dbc-node-logger

  • NEW_RELIC_APP_NAME This variable is used to configure the name with which the application should appear in New Relic but also elsewhere. Currently this value is also used to identify the application in logs and appended to secrets used in Redis.

    The default value is app_name

  • NODE_APPLICATION Use this varialbe to let the application how stylesheets are compiled and which jade templates are used. Currently two values are used to control compiling of SASS and delivering of templates:

    • pg Should be used when building Palles Gavebod

    The default value is pg

  • PORT Defines which portnumber the application should use when bootinh up. If PORT is undefined the application will be accecsible at port 8080 (i.e. localhost:8080)

    The default value is 8080

  • NODE_WEB_WORKERS Defines how many workers to use.

    The default value is 1

  • NODE_WEB_BROKERS Defines how many brokers to use.

    The default value is 1

  • AUTO_REBOOT Defines if a worker reboots on crash. (This does not apply to the whole application, just the workers).

    The default value is true

  • FRONT_PAGE_BUCKET Defines the bucket we use to get the layout for the front page.

    The default value is uxdev-biblo-content-frontpage

  • DYNAMO_TABLE_NAME Overwrites the default generated table name. The default makes is unique-ish.

  • DYNAMO_READ_CAP Overwrites the default provisioned read capacity, this needs to be set on a new table name, or the change won't affect the system.

    The default value is 10

  • DYNAMO_WRITE_CAP Overwrites the default provisioned write capacity, this needs to be set on a new table name, or the change won't affect the system.

    The default value is 10

New Relic

As New Relic is used by DBC A/S this application requires New Relic to be configured. If you want to run the application but can't provide a New Relic configuration you can start the application with NEW_RELIC_NO_CONFIG_FILE=true which will throw an error but wont crash your application.


Unit tests

Unit tests are placed with the modules and components in a tests folder to run the tests: npm run test

Selenium tests

The selenium tests (found in the /selenium directory) are integration tests, and mainly run in a chrome instance using ChromeDriver. to run tests: npm run selenium

If a SauceLabs account is available, you can set ENV variables SAUCE_USERNAME and SAUCE_ACCESS_KEY and then enable it in selenium_test.js