cap-utils
v1.2.6
Published
Add some example files to your CAP project
Downloads
39
Readme
Cap Utilities
This npx tools provides a set of example files to explore SAP Cloud Application Programming features.
How to use
It's simple! Open the terminal in your CAP Project root directory and run
npx cap-utils
Your project will be updated. Run
cds watch
and use the test.http to run some test. You are very encouraged to explore and extend the example files!
If you don't know how to initialize a SAP CAP Project: Jumpstart guide in SAP CAPire
Keep in mind that from 1.0.7 version the service were enhanced with scope protection. To add a local mock user copy the auth section from package-for-cap.json into your package.json and run :
cds watch --profile development
The development profile will inject a mock user with the required scope to consume the service. You can use the same user to access to the webapp.
Additional Modules
In version 1.0.4 it has been added a feature to add extra modules to your app.
npx cap-utils --add <extra_module_1>,<extra_module_2>...
Available modules:
- ui5 --> add a basic UI5 freestyle application in your project
- mta --> add sample files for mta based deployment on Cloud Foundry runtime
- profiling --> add a section in your package.json with cds profiles
- ext --> add a section in your package.json external odata source and sample files to implement it.
- test --> add test sample files and scripts
Suggested Extension in your IDE
| Visual Studio / SAP BAS | | -------------------------- | | "sapse.vscode-cds" | | "dbaeumer.vscode-eslint" | | "humao.rest-client" | | "qwtel.sqlite-viewer" | | "mechatroner.rainbow-csv" |