Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Commit

Permalink
Apply walkthrough improvements (#1)
Browse files Browse the repository at this point in the history
Set CDS version to 3.17.4 for generated projects
Mention Ports: Preview command from command palette
Fix screenshot of bookstore dependencies
  • Loading branch information
beckermarc committed Oct 2, 2019
1 parent 46ee512 commit 9173a7a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
19 changes: 10 additions & 9 deletions exercises-java/exercise1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Before you can start using SAP Application Studio, you need to create your devel
4. Now run:

```bash
mvn -B archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds -DarchetypeVersion=1.0.1 \
mvn -B archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds \
-DarchetypeVersion=1.0.1 -DcdsVersion=3.17.4 \
-DgroupId=com.sap.teched.cap -DartifactId=products-service -Dpackage=com.sap.teched.cap.productsservice
```

Expand Down Expand Up @@ -117,23 +118,23 @@ As you can see, the file does not contain CAP specific startup instructions. It

1. To start the application, go to the root of your project (`cd ~/projects/products-service`) in the terminal and run `mvn clean spring-boot:run`

2. A notifaction tab saying "A service is listenning to port 8080" will appear.
2. A notifaction tab saying "A service is listening to port 8080" will appear.

a. Choose `Expose and Open` and provide `app-port` as the unique description.

<img src="images/expose_open_port.png" width="75%" />

b. Press `Enter` to open the application in a new tab.

<img src="images/products_welcome_page.png" width="60%" />


>In case you missed the notification tab "A service is listening to port 8080", you can reopen it:
>
>1. From the main menu, go to **View**, **Find Command** to open the command palette.
>
>2. Type **Ports: Expose** and select or enter `8080`. Provide `app-port` as the unique description.
>2. Type **Ports: Expose** and select or enter `8080`. Provide `app-port` as the unique description.
>
>From the command palette, you can also use the ports command to preview, unexpose and rename ports.
>3. If you do not see port `8080` listed in the **Ports: Expose** view, use **View**, **Find Command** again and type **Ports: Preview** instead. Then click on the port `8080` to open the application.
b. Press `Enter` to open the application in a new tab.

<img src="images/products_welcome_page.png" width="60%" />

4. To inspect the OData metadata that is automatically served by the CAP Java runtime, either:

Expand Down
5 changes: 3 additions & 2 deletions exercises-java/exercise3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ For the bookstore, which you'll develop in this exercise we need to create and i
3. Now that you are in the correct folder, run the following command:

```bash
mvn -B archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds -DarchetypeVersion=1.0.1 \
mvn -B archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds \
-DarchetypeVersion=1.0.1 -DcdsVersion=3.17.4 \
-DgroupId=com.sap.teched.cap -DartifactId=bookstore
```
4. To open the bookstore project in a new workspace:
Expand Down Expand Up @@ -53,7 +54,7 @@ In the terminal run the following commands:

If you open the `package.json` of your bookstore project, you'll see a dependency to `@sap/capire-products`.

<img src="images/package_json_dependency.png" width="80%" />
<img src="images/package_json_dependency.png" width="65%" />

## Define the domain model

Expand Down
Binary file modified exercises-java/exercise3/images/package_json_dependency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9173a7a

Please sign in to comment.