Configuration

Karotte Configuration

Karotte Configuration file is the main way of configuring your Karotte generated project.

About

A Karotte Configuration is an app configuration based on the familiar JSON syntax. The configuration is used to define the structure of your app, the pages, the dashboards, the attributes, the permissions, etc. Currently there are two ways of creating and bootstrapping a Karotte Configuration:

  • Created in a text editor and then imported as new project
  • Directly edited by using the built-in config editor explained in Page Config Editor.

A good way to start is by using the minimal configuration below and updating it to your needs by following the following pages.

Minimal configuration

A minimal configuration for a Karotte project that you can use to start with is the following:

{
  "path": {
    "base": "/example",
    "slugs": []
  },
  "name": "example",
  "attributes": {
    "canView": "guest",
    "canEdit": "admin"
  },
  "layout": "grid",
  "dashboards": [
    {
      "type": "infoAndLinks",
      "parameters": {
        "text": "This is an example page under the url /example"
      }
    },
    {
      "type": "inputForm",
      "parameters": {
        "databaseTable": "example",
        "mode": "add"
      }
    }
  ]
}

If you want to know what each of the above properties mean, please read the following pages.