Snippets

Pete Matthews .cdsrc.json

Created by Pete Matthews

File snippet.txt Added

  • Ignore whitespace
  • Hide word diff
+{
+    "build": {
+        "target" : ".",
+        "tasks"  : [
+            {
+                "for" : "node-cf",
+                "src" : "srv",
+                "options" : {
+                    "model" : [
+                        "srv",
+                        "db"
+                    ]
+                }
+            },
+            {
+                "for" : "hana",
+                "src" : "db",
+                "options" : {
+                    "model" : [
+                        "srv",
+                        "db"
+                    ]
+                }
+            }
+        ]
+    },
+    "auth": {
+      "passport": {
+        "strategy": "mock",
+        "users": {
+          "alice": {
+            "password": "123",
+            "ID": "alice",
+            "roles": [
+              "admin"
+            ],
+            "xs.user.attributes": {
+              "country": [
+                "GB"
+              ]
+            }
+          },
+          "bob": {
+            "password": "123",
+            "ID": "bob",
+            "roles": [
+              "reader"
+            ]
+          },
+          "mallory": {
+            "password": "123",
+            "ID": "mallory",
+            "roles": [
+              "table"
+            ]
+          }
+        }
+      }
+    }
+}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.