Using Node.js Configuration Files

The Platform provides a number of Node.js modules through the NPM protocol. These modules are packages under the @gene scope, and are to be retrieved from the DecisionBrain NPM repository. The NPM system is instructed to download the Platform modules from the proper repository thanks to the following line, already included in the web/.npmrc file that is generated in your project by the Application Generator tool.

@gene:registry=https://nexus.decisionbrain.cloud/repository/dbgene-npm-repository/
                  

As for other repositories, you need to log into this NPM repository. To this end, run the following command from the root directory of your project. You will be asked for a user, a password and an email. The user and password are your installation credentials. The email can be any syntactically valid email address.

web/npm-login.sh

Expected command output:

$ web/npm-login.sh

> Configure project:
-----------------
This project is configured to use the following repository: https://nexus.decisionbrain.cloud/repository/dbgene-maven-repository
-----------------

> Task :web:nodeSetup

BUILD SUCCESSFUL in 3s
1 actionable task: 1 executed


npm notice Log in on https://nexus.decisionbrain.cloud/repository/dbgene-npm-repository/
Username: <user>
Password: <password>
Email: (this IS public) <email address>
Logged in as <user> on https://nexus.decisionbrain.cloud/repository/dbgene-npm-repository/.