Download and Configure
- Download and install NodeJS.
- Download and install MongoDB.
- Download StageR latest source here (or download latest binary and skip step 4 and 5)
Configure npm to connect to Search and Content Analytics' artifactory repository for local dependencies:
Open cmd as Administrator
Get an Authentication token (using curl or Postman)
Append a response to: C:\Users\<USERNAME>\.npmrcs\local
It seems that some versions of software will create C:\Users\<USERNAME>\.npmrcs\default when you perform step a) above. If you have a default file (rather than a local file in .npmrcs), append the authentication token to that. You should have a single file that has content similar to the following:
Save the file.
- Unzip the stager-1.0.0.zip file (downloaded in the previous step)
- Change to this directory: npm install --production
StageR data is stored in a No-SQL database.
- MongoDB is the default storage option
You can develop custom plugins for other No-SQL databases.
StageR will create the database automatically, including all necessary collections (contents, transactions, settings, foreign keys, and reprocesses) that are used by each Storage Unit.
StageR can hold the configuration for multiple environments. The
config/env folder holds the different configuration files for all environments. An environment configuration will inherit the configuration present in the
config/env/all.js file and will overwrite any configuration field by redefining it on the environments file. New configuration fields can be added to the environment file.
All configuration example
Environment specific configuration (secure.js)
In this example, the port and clusterMode parameter will be overridden. authList, logging, keyLocation, certLocation, caLocation, and passphrase will be added to the applications configuration.
Start StageR with a specific environment configuration
Set the environment configuration name to the NODE_ENV environment variable.
- If the variable is not set, the application will start with the development configuration by default.