Skip to content

gavdilabs/cap-challenge

Repository files navigation

CAP Challenge

Prerequisities

  • NodeJS Installed on machine
  • Editor of choice (e.g. VSCode)
  • NPM installed
  • Git
  • Bruno API Tooling

Getting Started

To get started with the challenge, first perform an installation of the required dependencies using the following command:

npm install

Once the process is complete, all development and runtime dependencies should be ready, and you can now start the challenge.

Challenge

  1. Create your own personal entity in the schema.cds file, and expose it in your service
  2. Supply local test data for your entity in the test/data directory
  3. Secure your exposed entity with role-accesses
  4. Setup local test user for your created roles
  • Bonus points for setting up a Bruno collection in the project and creating test cases
  1. Import the data model for the Microsoft Northwind service (https://services.odata.org/v4/northwind/northwind.svc/)
  2. Expose and entity from the external Northwind service
  3. Setup local testing proxy for the service consumption
  4. Extend the Northwind exposed entity with custom properties from your service
  5. Setup a custom function import that fetches data from the Northwind service
  6. Generate a xs-security.json file based on your role setup
  7. Write MTA deployment descriptor based on your project and build the MTAR
  8. Setup custom events in your service exposure
  9. Emit custom events
  10. Consume internally in the service the custom event
  11. Generate a view that exposes your custom entity in a unique manner (with calculated fields)

Learn More

Learn more at https://cap.cloud.sap/docs/get-started/.

About

Base setup for CAP Typescript challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published