Skip to content
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

New ol style in Getting Started #477

Merged
merged 3 commits into from
Oct 9, 2023
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
99 changes: 66 additions & 33 deletions get-started/in-a-nutshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,39 @@ uacp: This page is linked from the Help Portal at https://help.sap.com/products/
impl-variants: true
---

<style scoped lang="scss">
ol {
margin-left: 10px;
counter-reset: my-counter;
li {
counter-increment: my-counter;
list-style: none;
&::before {
content: counter(my-counter);
color: var(--vp-c-text-1);
background-color: var(--vp-code-bg);
width: 20px;
height: 20px;
background-size: 20px;
line-height: 22px;
border-radius: 50%;
font-weight: 400;
text-align: center;
font-size: 12px;
vertical-align: middle;
display: inline-block;
position: relative;
top: -2px;
left: -30px;
margin-right: -20px;
}
p {
display: inline;
}
}
}
</style>

# Getting Started in a Nutshell

Using a minimal setup
Expand Down Expand Up @@ -52,59 +85,59 @@ git clone https://github.com/sap-samples/cloud-cap-samples-java bookshop

1. Create a new project using `cds init`

::: code-group
```sh [Node.js]
cds init bookshop
```
```sh [Java]
cds init bookshop --add java
```
:::
::: code-group
```sh [Node.js]
cds init bookshop
```
```sh [Java]
cds init bookshop --add java
```
:::

2. Open the project in VS Code

```sh
code bookshop
```
```sh
code bookshop
```

::: details **Note:** VS Code CLI on macOS needs extra setup
::: details **Note:** VS Code CLI on macOS needs extra setup

Users on macOS must first run a command (*Shell Command: Install 'code' command in PATH*) to add the VS Code executable to the `PATH` environment variable. Read VS Code's [macOS setup guide](https://code.visualstudio.com/docs/setup/mac) for help.
Users on macOS must first run a command (*Shell Command: Install 'code' command in PATH*) to add the VS Code executable to the `PATH` environment variable. Read VS Code's [macOS setup guide](https://code.visualstudio.com/docs/setup/mac) for help.

:::
:::

3. Run `cds watch` in an [*Integrated Terminal*](https://code.visualstudio.com/docs/terminal/basics)

::: code-group
::: code-group

```sh [Node.js]
cds watch
```
```sh [Node.js]
cds watch
```

```sh [Java]
cd srv && mvn cds:watch
```
```sh [Java]
cd srv && mvn cds:watch
```

:::
:::

::: details `cds watch` is waiting for things to come...
::: details `cds watch` is waiting for things to come...

```log
[dev] cds w
```log
[dev] cds w

cds serve all --with-mocks --in-memory?
live reload enabled for browsers
cds serve all --with-mocks --in-memory?
live reload enabled for browsers

___________________________
___________________________

No models found in db/,srv/,app/,schema,services. // [!code focus]
Waiting for some to arrive... // [!code focus]
No models found in db/,srv/,app/,schema,services. // [!code focus]
Waiting for some to arrive... // [!code focus]

```
```

So, let's go on adding some CDS model as follows...
So, let's go on adding some CDS model as follows...

:::
:::



Expand Down
2 changes: 1 addition & 1 deletion java/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Excited? The following sections describe how to set up a development environment

This section describes the prerequisites and tools to build a CAP application locally.

1. Install the CDS tools (`cds-dk)` by following the steps in section *[Getting Started > Local Set Up](../get-started/jumpstart#setup)*.
1. Install the CDS tools (`cds-dk`) by following the steps in section *[Getting Started > Local Set Up](../get-started/jumpstart#setup)*.

2. Install a Java VM. At least, Java 17 is required. For example, [download](https://github.com/SAP/SapMachine/releases/latest) and [install](https://github.com/SAP/SapMachine/wiki/Installation) SapMachine 17.

Expand Down