Repository navigation
Take the quickstart from an empty folder to a data app - #27
Merged
Merged
Conversation
- Prerequisite checks: node -v (22+), cds version (cds-dk 10.x) - Optional sanity check of the tiny-sample project before the plugin - How to create srv/apps/hello.js in VS Code or a terminal - Replace the "Reading your own data" fragment with a complete BOOKS app that runs as-is in the tiny-sample project (search "Raven" leaves 1 row) - Tip: a redirect under app/ lists the app on CAP's index page, after a restart - Short "What is in the database" section, with the depth on the persistence page: where tables and rows come from, cds compile, cds repl, and a file-backed SQLite that survives restarts - Troubleshooting table in the quickstart; setup problems (cds not found, PowerShell execution policy, EACCES, port in use, login) and the restart case of NO_DRAFT_ENTRY in guide/troubleshooting - Next steps point at reference/deployment All steps measured with cds-dk 10.1.0, @sap/cds 10.1.1 and cap2ui5 0.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y47xEWed2qwpona5WWpt4B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes
guide/getting-startedso a beginner gets from an empty folder to a working data app, with the depth in::: detailsblocks and on the pages it belongs to.Quickstart (
guide/getting-started.md)node -v(22+) andcds version(@sap/cds-dk (global)10.x)cds watch, then the index page lists/odata/v4/catalogwithBookssrv/apps/hello.jsin VS Code (New File… →apps/hello.js) or a terminal (mkdir srv/apps/mkdir srv\apps)app/hello/index.htmllists the app on CAP's index page. This only works after a restart: a newapp/folder triggers no restart, so/hello/answers 404 until then.BOOKSapp that runs as-is in the tiny-sample project. It replaces the fragment that readmy.bookshopand apricecolumn the project doesn't have.guide/troubleshootingreference/deployment(HDI table, approuter route)Persistence (
guide/persistence.md)New section "The database in development":
.cdsfiles, nodb/needed) and where the rows come from (CSV by file name; one draft per roundtrip)cds compile "*" --to sqlandcds repl --run .db.sqlite+cds deploy: re-deploying deletes drafts, and*.sqliteis already in.gitignoreTroubleshooting (
guide/troubleshooting.md)cdsnot found (plus the PowerShell execution policy),EACCESonnpm i -g, port 4004 in use, and the login promptNO_DRAFT_ENTRY…now lists "the server restarted" as its most common causeVerification
Measured with cds-dk 10.1.0, @sap/cds 10.1.1, cap2ui5 0.1.0 and Node 22 in a fresh
cds init --nodejs --add tiny-sampleproject:SEARCHfor "Raven" returns 1 row and the toast "1 found". Saving the file restartscds watch, which prints theBOOKSline.sdk.openui5.orgis blocked by this environment's network policy.cds repl: after the start and one click it shows 2 draft rows owned byalice, anddatacontains<COUNT>1</COUNT>.cds deployit answersNO_DRAFT_ENTRY….[EADDRINUSE] - port 4004 is already in use by another server process., and--port 4005works.aliceand don't claim that other names are refused.npm run check:cipasses with both sibling checkouts.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y47xEWed2qwpona5WWpt4B
Generated by Claude Code