Back to basics with SAP Cloud Application Programming Model (CAP) - part 2

preview_player
Показать описание


*Summary*
Generated by AI

- [01:58] 👋 Introduction and Greetings
- DJ welcomes the audience and greets them.

- [02:23] 📺 Episode Introduction
- DJ introduces the second episode of the "Back to Basics with SAP Cloud Application Programming Model (CAP)" series.

- [03:19] 📱 Experiment with Camera Setup
- DJ explains an experiment with his camera setup and mentions his colleague AJ joining the session.

- [04:43] 🗺️ Series Overview and Approach
- DJ outlines the series' purpose: a gentle exploration of CAP basics, emphasizing understanding.

- [05:25] 🏃 DJ's Health Update
- DJ briefly updates on his health and mentions his morning run.

- [07:16] 📦 Using Dev Containers with CAP
- DJ talks about using development containers with CAP and mentions a blog post he wrote.

- [09:08] 📰 SAP Developer News
- DJ shares information about the SAP Developer News and mentions a blog post by Riley Rainey.

- [10:32] 💡 Planning for the Session
- DJ discusses the plan for the session, which includes exploring CAP commands.

- [12:06] 👩‍💻 Opening VS Code and Dev Containers
- DJ opens VS Code and explains the process of using Dev Containers.

- [13:15] ⚙️ Exploring `cds init`
- DJ explains the `cds init` command and its purpose in initializing a CAP project.

- [14:12] 💬 Audience Discussion on Language Preferences
- DJ briefly discusses language preferences, mentioning both Java and JavaScript.

- [16:04] 📁 Directory Structure in Initialized Project
- DJ explores the directory structure created by the `cds init` command.

- [17:23] 🤔 Questions about `.eslintrc` and `.gitignore`
- DJ asks the audience for insights into the purposes of `.eslintrc` and `.gitignore` files.

- [19:32] 🔒 Purpose of `.gitignore`
- Stefano explains that `.gitignore` is used to specify files that should not be included in the Git repository.

- [20:58] 🐚 Overview of app components and local development
- App components created on the local file system.
- Development within a container context.
- Importance of not storing data inside containers.

- [22:36] 📜 Understanding git and GitHub
- Differentiating between git and GitHub.
- Explaining the purpose of .gitignore in ignoring files for git.
- Highlighting the significance of not storing sensitive data in repositories.

- [26:10]🧹 Introduction to ESLint and linting in JavaScript
- Discussing ESLint as a linting tool for JavaScript.
- Explaining the role of ESLint in catching compile-time errors and enforcing code style.
- Mentioning the importance of setting rules for code quality.

- [29:56] 🚀 Integration of ESLint with SAP CAP
- Introducing the integration of ESLint with SAP Cloud Application Programming Model (CAP).
- Highlighting the purpose of ESLint rules specific to CAP development.
- Exploring how ESLint checks CAP code against defined rules.

- [32:41] 📁 Explanation of RC Files and Hidden Files
- Clarifying the historical significance of RC files in Unix.
- Describing the naming convention of RC files for configuration.
- Discussing the use of hidden files (files starting with a dot) in Unix-like systems.

- [38:08] 📂 Understanding the Purpose of 'DB' and 'Serve' Directories in CAP
- Explaining the purpose of 'DB' and 'Serve' directories in SAP CAP.
- Distinguishing between the persistence layer (DB) and service layer (Serve).
- Highlighting the need for separation in defining entities, services, and data exposure in CAP.

- [41:04] 📦 Overview of project structure
- Project structure includes directories like `db`, `srv`, `app`, and others.
- CDS language encourages reusable and modularized definitions for projects.

- Differentiating between dependencies and dev dependencies.
- The significance of the "scripts" section, including "npm start" for starting the service.

- [46:05] 🛠️ Design time vs. runtime dependencies
- Explains the difference between design time and runtime dependencies.
- Design time tools like watchers and auto restarters are not needed in production.

- [49:45] 🧩 Adding features with "CDS add"
- Demonstrates how to add features to a project using "CDS add."
- Shows the addition of a tiny sample feature and its impact on the project structure.

- [55:44] 🧹 Linting with "CDS lint"
- Introduces linting for a CAP project using "CDS lint."

- [01:02:55] 🗃️ Locating the global installation of SAP CDS DK
- Explains how to find the global installation path of SAP CDS DK.
Рекомендации по теме
Комментарии
Автор

Hi DJ another nice method to use containers. Is that you connect from VSC to the BAS Container. With the vsc extension "Remote access for Business Application Studio. The great thing is that you have access to all the services running on BTP such as the DB and destinations. Which is very handy for testing.

erikpalmen
Автор

Hi DJ, I just watched the first 2 session and it is really amazing. Looking forward to join the upcoming one. Thank you for sharing this❤

mdImteyazAlam
Автор

All this is cool. What if i want to update material master data in s4 cloud through a post call to the standard api. Can i do that using a cap service?
Basically, how do we use the release odata v2 or v4 apis in our cap service and then add a bit of Ui and create a fiori app to serve our purpose?

deepakparashar
Автор

Hi DJ, I have a question please: When we should use CAP instead RAP?

mpredolim
Автор

Hi DJ, I have just started watching the series. I have downloaded folder capb2b as you advised in session 1 in VS code but I do not see any dev container in VS code.

SeemaSharma-mvzv
Автор

how do you get the tree unix command to run at your terminal? thanks!

DD-coder
Автор

After I run cds init command, it adds eslint.config.mjs instead of .eslintrc. Am I skipping any step?

Eubulaner
Автор

Actual Version of CDS: cds add samples (sample and tiny-sample was removed)!

carstenschlegel
join shbcf.ru