Skip to content

Automatic commit: Move 'cp-apm-nodejs-create-service' from QA to Prod… #18428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified tutorials/cp-apm-nodejs-create-service/cds_commands.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ With your installed CDS command line tool, you can now create a new CAP-based pr

2. Open Visual Studio Code, go to **File** **→** **Open** and choose the **`my-bookshop`** folder.

3. Go to **View** **→** **Command Palette** **→** **Terminal: Create New Integrated Terminal** to open a command line window within Visual Studio Code and run the following command in the root level of your project:
3. Go to **View** **→** **Command Palette** **→** **Terminal: Create New Terminal** to open a command line window within Visual Studio Code and run the following command in the root level of your project:

```Shell/Bash
npm install
Expand Down Expand Up @@ -219,12 +219,13 @@ After initializing the project, you should see the following empty folders:
```Shell/Bash
[cds] - connect using bindings from: { registry: '~/.cds-services.json' }
[cds] - connect to db > sqlite { database: ':memory:' }
> init from ./db/csv/my.bookshop-Authors.csv
/> successfully deployed to sqlite in-memory db

[cds] - serving CatalogService { at: '/catalog' }
[cds] - serving CatalogService { at: '/catalog', impl: './srv/cat-service.js' }

[cds] - server listening on { url: 'http://localhost:4004' }
[cds] - launched at 03/03/2022, 15:47:28, in: 952.896ms
[cds] - launched at 18/05/2022, 19:49:32, in: 874.456ms
[cds] - [ terminate with ^C ]
```
> This means, `cds watch` detected the changes in `srv/cat-service.cds` and automatically bootstrapped an in-memory SQLite database when restarting the server process.
Expand Down Expand Up @@ -366,13 +367,13 @@ In Visual Studio Code you will add plain CSV files in folder `db/csv` to fill yo
```Shell/Bash
[cds] - connect using bindings from: { registry: '~/.cds-services.json' }
[cds] - connect to db > sqlite { database: ':memory:' }
> filling my.bookshop.Books from ./db/csv/my.bookshop-Books.csv
> init from ./db/csv/my.bookshop-Books.csv
/> successfully deployed to sqlite in-memory db

[cds] - serving CatalogService { at: '/catalog', impl: './srv/cat-service.js' }

[cds] - server listening on { url: 'http://localhost:4004' }
[cds] - launched at 03/03/2022, 15:51:30, in: 756.665ms
[cds] - launched at 18/05/2022, 19:49:47, in: 861.036ms
[cds] - [ terminate with ^C ]
```

Expand Down Expand Up @@ -442,7 +443,7 @@ Instead of using in-memory, you can also use persistent databases.
[cds] - serving CatalogService { at: '/catalog', impl: './srv/cat-service.js' }

[cds] - server listening on { url: 'http://localhost:4004' }
[cds] - launched at 03/03/2022, 15:53:43, in: 767.816ms
[cds] - launched at 18/05/2022, 19:54:53, in: 830.398ms
[cds] - [ terminate with ^C ]
```

Expand Down