Welcome at the nodum Docs. You'll find comprehensive guides and documentation to help you start working with nodumApp as quickly as possible. Let's jump right in!

Get Started    Docs

Database (mongo)

The standard database(s) existing in nodum are so called "MongoDB"'s. MongoDB is a technique to save and easily find (through filters) structureless information. In the menu you can open the section MongoDB to automatically activate the database, add collections and make indexes based on existing collections.


Collections are best compared to tables, except there is no form of specified fields/columns: you can simply put in any record and retrieve it. See more about this: Database.


If a lot is sorted or filtered in a certain key (field) it may be advisable to maken an index. See more about this: Database.

An external MongoDB server

Within the nodum platform your MongoDB is hosted as standard. If you want to connect your own MongoDB server, you can set this in the configuratie of your project in the section [databasemongo]. For example:

    enabled         = 1
    server          = ""
    port            = 1337
    username        = "mydb"
    password        = "MyS3cretP4ssw0rd!"
    ; database      = "nodum" ; Defaults to username
    ; collection    = "nodum" ; Defaults to database
    collection[]    = "logs:l"
    collection[]    = "users:u"

To approach the collections in the specified database, they need to be specified as well (see the collection[] elements). The format is: "collectienaam:alias", where the object is the alias that you can use to address the collection in your nodum code. The aforementioned example enables you to find and dump records in the logs collection using:

{{ l.find() | pre }}


Making a dynamic (without configuration) connection with an external MongoDB server is possible as well, see: api.Mongo_Client-API