Skip to content

Configuration file

The configuration made within the desktop app (the designer), are stored in a JSON file named tangleguard.json in the root of your software project.

  • Directorysrc/
  • Cargo.toml
  • tangleguard.json

If you use the Desktop App for the first time, TangleGuard will create that file for you. The file is supposed to be included in Git. Below are some advantages listed to have such file.

Below you see an example configuration.

{
"layers": [
{
"name": "Interaction",
"description": "",
"packages": ["rest-api", "graphql-api"]
}
],
"packages": [
{
"name": "rest-api",
"dependencies": ["utils"],
"focus": "technical"
}
],
"rules": [
{
"from": "Interaction",
"to": "Services"
}
],
"domains": [
{
"name": "User Management",
"dsl": ["OAuth", "Token", "Role"],
"domain_type": "Generic"
}
]
}

You can edit the file manually but it’s highly recommended to use the UI instead.