Directly edit your Mongo database or batch configure digital goods, missions, or other items quickly and easily.
Direct Database Access
You can use a tool like Robo 3T to browse and edit the Mongo database directly. Locally, the DB can be accessed at port 27017. Accessing the database for a remote instance on a service like AWS will require more advanced setup with ssh authentication.
Batch Configuration
If there are a lot of digital goods, missions, or other configurable items to be added to your instance, it may be desirable to batch upload or update many at once. Using bash scripts, it's possible to interact directly with the API to upload data in json format directly to the Elements database.
Item Upload Bash Script Sample
Below is a sample script to upload items defined in JSON. By default it's configured to upload items defined in a JSON file (items.json) in the same directory as the script, to your local Elements instance. You can format the items in the JSON in the same way you see in the example earlier in this document.
This script will also update items if they already exist in the database.
Below is a sample script to upload missions defined in JSON. By default it's configured to upload missions defined in a JSON file (missions.json) in the same directory as the script, to your local Elements instance.
You can format the missions in the JSON in the same way you see in the example earlier in this document.
This script will also update missions if they already exist in the database.
Below is a sample script to upload product bundles defined in JSON. By default it's configured to upload missions defined in a JSON file (ProductBundles.json) in the same directory as the script, to your local Elements instance. When running the script, you'll also need the ID of the application configuration, since the script can add the bundles to either the iOS or Google Play application configurations.
You can format the product bundles in the JSON in the same way you see in the example earlier in this document.