Install MongoDB

To install the MongoDB, you need to execute the following steps:

  1. Download the MongoDB setup file from the Download Center of MongoDB. For most scenarios the free Community Edition is sufficient. Choose a version (4.2 is recommended) matching the architecture and OS of the machine which is going to host your user database.
  2. Consult the MongoDB installation instructions (Windows, Linux) to setup MongoDB as a service on your machine.
    You might want to change the following settings:
    1. systemLog
    2. dbPath
    3. bindIp
  3. Optional: Consult the MongoDB Security Checklist (mainly applicable to the MongoDB enterprise edition) to protect your MongoDB installation.

Load Initial Data

Please stop the user-service before importing the data. Since the user-service caches the data on start-up, it would still rely on old data otherwise.

  1. Extract the initialization files for the user database. They are located in user_database_initialization.zip.
  2. Transfer the initialization files for the user database to the MongoDB host.
  3. Import the initial data into your MongoDB installation.

    mongo --verbose <path-to-initial-data>/setupInitialData.js