From b75e84dec2c5219389b4edf78019fe2bb49a9ab9 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 4 Jun 2026 22:21:53 +0000 Subject: [PATCH] initial commit --- .gitignore | 19 +++++++++++++++++++ .vscode/tasks.json | 10 ++++++++++ db/schema.cds | 5 +++++ readme.md | 22 ++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/tasks.json create mode 100644 db/schema.cds create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ace1c29 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +node_modules/ +target/ +_out/ +gen/ + +.cdsrc-private.json +default-*.json +*.sqlite + +# MTA +mta_archives/ +*_mta_build_tmp +*.mtar + +# Other +.DS_Store + +# @cap-js/cds-typer +@cds-models diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..ef0bdf8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,10 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "cds watch", + "command": "cds watch", + } + ] +} diff --git a/db/schema.cds b/db/schema.cds new file mode 100644 index 0000000..7ef3280 --- /dev/null +++ b/db/schema.cds @@ -0,0 +1,5 @@ +entity Books { + key ID : Integer; + title : String; + author : String; +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..a736c8f --- /dev/null +++ b/readme.md @@ -0,0 +1,22 @@ +# Getting Started + +Welcome to your new CAP project. + +It contains these folders and files, following our recommended project layout: + +File or Folder | Purpose +---------|---------- +`app/` | content for UI frontends goes here +`db/` | your domain models and data go here +`srv/` | your service models and code go here +`readme.md` | this getting started guide + +## Next Steps + +- Open a new terminal and run `cds watch` +- (in VS Code simply choose _**Terminal** > Run Task > cds watch_) +- Start with your domain model, in a CDS file in `db/` + +## Learn More + +Learn more at .