jerni
a framework to build data-driven products from the ground up

module: jerni

create a Journey object with a given configurations

Summary

type: Function

Parameters

config
: JourneyConfig

configuration to create a journey

returns

Usages

// create a Journey object with a given configurations
const createJourney = require("jerni");
const journey = createJourney({
writeTo: "http://some-server.com",
stores: [
mongoDBStore,
elasticSearchStore,
],
onError(err, event) {
console.error("event #%d[%s] throws %s", event.id, event.type, err.message);
}
})