Skip to content

Commit 7a84e58

Browse files
committed
feat: audit-log service enablement
0 parents  commit 7a84e58

9 files changed

+147
-0
lines changed

.cdsrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.eslintrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"env": {
4+
"node": true,
5+
"es6": true,
6+
"jest": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 2017
10+
},
11+
"globals": {
12+
"SELECT": true,
13+
"INSERT": true,
14+
"UPDATE": true,
15+
"DELETE": true,
16+
"CREATE": true,
17+
"DROP": true,
18+
"cds": true
19+
},
20+
"rules": {
21+
"no-console": "off",
22+
"require-atomic-updates": "off"
23+
}
24+
}

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CAP cap-auditlog
2+
_out
3+
*.db
4+
connection.properties
5+
default-*.json
6+
gen/
7+
node_modules/
8+
target/
9+
10+
# Web IDE, App Studio
11+
.che/
12+
.gen/
13+
14+
# MTA
15+
*_mta_build_tmp
16+
*.mtar
17+
mta_archives/
18+
19+
# Other
20+
.DS_Store
21+
*.orig
22+
*.log
23+
24+
*.iml
25+
*.flattened-pom.xml
26+
27+
# IDEs
28+
# .vscode
29+
# .idea

.vscode/extensions.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
// >>>>>>>> Add CDS Editor here as soon it is available of vscode marketplace!,
8+
"dbaeumer.vscode-eslint",
9+
"esbenp.prettier-vscode",
10+
"mechatroner.rainbow-csv",
11+
"humao.rest-client",
12+
"alexcvzz.vscode-sqlite",
13+
"hbenl.vscode-mocha-test-adapter",
14+
"sdras.night-owl"
15+
],
16+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
17+
"unwantedRecommendations": [
18+
19+
]
20+
}

.vscode/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"command": "cds run --with-mocks --in-memory?",
9+
"name": "cds run",
10+
"request": "launch",
11+
"type": "node-terminal",
12+
"skipFiles": [ "<node_internals>/**" ]
13+
}
14+
]
15+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files.exclude": {
3+
"**/.gitignore": true,
4+
"**/.git": true,
5+
"**/.vscode": true
6+
}
7+
}

.vscode/tasks.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "shell",
8+
"label": "cds watch",
9+
"command": "cds",
10+
"args": ["watch"],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"problemMatcher": []
16+
},
17+
{
18+
"type": "shell",
19+
"label": "cds run",
20+
"command": "cds",
21+
"args": ["run", "--with-mocks", "--in-memory?"],
22+
"problemMatcher": []
23+
}
24+
]
25+
}

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### CAP project with Audit Logging
2+
3+
Sample CAP project for better understanding of [SAP Audit Log Service](https://help.sap.com/viewer/080fabc6cae6423fb45fca7752adb61e/1910b/en-US/2a1c2492fa70497fa877b78cdf3a29be.html) using SAP's [audit-log](https://www.npmjs.com/package/@sap/audit-logging) package.
4+
5+
SAP Cloud Platform Audit Log Viewer can be used for testing, after deployment to trial account.

package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "cap-auditlog",
3+
"version": "1.0.0",
4+
"description": "A CAP project using SAP Audit Log Service.",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/bymurat/cap-auditlog.git"
8+
},
9+
"keywords": ["SAP CAP", "cap", "audit log", "auditlog"],
10+
"license": "Beerware",
11+
"dependencies": {
12+
"@sap/cds": "^4",
13+
"express": "^4"
14+
},
15+
"devDependencies": {
16+
"sqlite3": "^5"
17+
},
18+
"scripts": {
19+
"start": "npx cds run"
20+
}
21+
}

0 commit comments

Comments
 (0)