All Projects → SAP-samples → ui5-cap-event-app

SAP-samples / ui5-cap-event-app

Licence: Apache-2.0 license
Showcase of SAP Cloud Application Programming Model and OData V4 with draft mode in a freestyle SAPUI5 app and an SAP Fiori elements app.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CAP CDS
7 projects

Projects that are alternatives of or similar to ui5-cap-event-app

ui5-service-worker-sample
ui5-service-worker-sample demonstrates how the Service Worker API, available in modern web browsers, could be used in a UI5 app to realize different caching strategies.
Stars: ✭ 16 (-77.14%)
Mutual labels:  sample, openui5, sapui5, ui5, sample-code
ui5-webcomponents-sample-react
UI5 Web Components Sample TODO application built with React.
Stars: ✭ 47 (-32.86%)
Mutual labels:  sample, ui5, sample-code
ui5-webcomponents-sample-angular
UI5 Web Components Sample TODO application built with Angular.
Stars: ✭ 34 (-51.43%)
Mutual labels:  sample, ui5, sample-code
cloud-abap-rap
This repository contains several examples how to develop with the ABAP RESTful Application Programming Model (RAP) in SAP BTP, ABAP environment.
Stars: ✭ 98 (+40%)
Mutual labels:  sample, odata, sample-code
abap-odata-smoke-test
This ABAP Report performs simple smoke tests for activated ODATA services, providing basic automated testing for your ODATA endpoints.
Stars: ✭ 13 (-81.43%)
Mutual labels:  sample, odata, sample-code
ui5ts
This repo is no longer maintained. For a newer version supporting a more recent version of UI5, see neoprincie's fork:
Stars: ✭ 36 (-48.57%)
Mutual labels:  openui5, sapui5, ui5
devtoberfest-2021
The home of Devtoberfest 2021 - an open celebration of what makes us developers - coding and collaboration!
Stars: ✭ 212 (+202.86%)
Mutual labels:  sample, sample-code, sap-cap
ui5-schemas
🚀 UI5 Schemas allows you to develop SAPUI5/OpenUI5 XML at a maximum convenience. It downloads, upgrades and sets up SAPUI5/OpenUI5 XML schemas for a better development experience in your favorite IDE (if it is WebStorm ;).
Stars: ✭ 50 (-28.57%)
Mutual labels:  openui5, sapui5, ui5
btp-full-stack-typescript-app
A sample project to demonstrate how to implement a full-stack app with SAP Cloud Application Programming Model, plus SAPUI5 and TypeScript.
Stars: ✭ 27 (-61.43%)
Mutual labels:  sample, sapui5, sap-cap
fiori-elements-feature-showcase
Sample application that demonstrates and documents a broad variety of features of SAP Fiori elements for OData V4. Developers can play around with the new features and learn how to implement them.
Stars: ✭ 76 (+8.57%)
Mutual labels:  sample, sample-code, sap-cap
UI5-Best-Practice
living document on UI5 best practices
Stars: ✭ 52 (-25.71%)
Mutual labels:  openui5, sapui5, ui5
openui5-tour
OpenUI5 Tour enables an user-friendly way to showcase products and features in your website.
Stars: ✭ 21 (-70%)
Mutual labels:  openui5, sapui5, ui5
wdi5
cross-platform test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
Stars: ✭ 45 (-35.71%)
Mutual labels:  openui5, sapui5, ui5
cap-sflight
Using SAP Cloud Application Programming Model and SAP Fiori elements to build a simple travel management app, both with Node.js and Java.
Stars: ✭ 65 (-7.14%)
Mutual labels:  sample, sample-code, sap-cap
openui5-validator
A library to validate OpenUI5 fields
Stars: ✭ 17 (-75.71%)
Mutual labels:  openui5, sapui5, ui5
cloud-cap-multitenancy
SAP Cloud Application Programming Model (CAP) sample code project with multitenancy using service manager-created SAP HANA containers for tenant data isolation.
Stars: ✭ 33 (-52.86%)
Mutual labels:  sample, sample-code, sap-cap
cloud-cap-risk-management
The SAP Risk Management example applications show how to deploy a CAP (SAP Cloud Application Programming model) application to Cloud Foundry and Kyma.
Stars: ✭ 36 (-48.57%)
Mutual labels:  sample, sample-code, sap-cap
teched2021-developer-keynote
SAP TechEd 2021 Developer Keynote: Improving Developers' Lives.
Stars: ✭ 23 (-67.14%)
Mutual labels:  sample, sample-code, sap-cap
ui5-webcomponents-sample-vue
UI5 Web Components Sample TODO application built with Vue.
Stars: ✭ 52 (-25.71%)
Mutual labels:  sample, ui5, sample-code
cloud-sample-spaceflight-java
Build Java applications with the application programming model on SAP Cloud Platform.
Stars: ✭ 49 (-30%)
Mutual labels:  sample, sap-cap

ui5-cap-event-app

REUSE status

Showcase of two UI5 user interfaces, one built with freestyle SAPUI5 (or rather OpenUI5), the other using SAP Fiori elements, with a CAP backend, using OData V4 with Draft mode.

Description

This app uses simple attendee registration and administration for events as an example scenario for demonstrating the data handling and overall setup. The app consists of three parts: an end-user UI implemented in freestyle SAPUI5, a metadata-driven administrator UI generated with Fiori elements and a Node.js-based CAP backend. While the code implements a complete end-to-end full-stack app, it is kept as simple as possible and the main focus is on freestyle SAPUI5 code making use of OData V4 as well as of "Draft" functionality to persist non-final datasets.

Further details about how the functionality is implemented can be found in the documentation.

Requirements

Node.js, Yarn 1.x (just do npm install -g yarn), sqlite3 (only needed separately on Windows, commandline tools zip need to be downloaded, extracted, and directory added to the PATH)

Download and Installation

  1. Clone the project.

    git clone https://github.com/SAP-samples/ui5-cap-event-app
    cd ui5-cap-event-app
  2. Use Yarn to install the dependencies.

    yarn

Running the Project

Execute the following command to run the project locally for development (start form UI, admin UI, and CDS server):

yarn start

As also shown in the terminal after executing this command, the form UI is then running on http://localhost:8080/index.html, the admin UI on http://localhost:8081/index.html, and the CDS server on http://localhost:4004/.

For the form UI, you can use user name [email protected] with password 123. For the admin UI, use [email protected] and password 123.

Building the Project

Execute the following command to build the project and get one integrated app that can be deployed (build the form UI, admin UI, and CDS server):

yarn build

Prerequisite: yarn build runs cds build in the CDS server package which requires @sap/cds-dk. Please ensure to install @sap/cds-dk globally via:

npm i -g @sap/cds-dk

After building the individual packages, the build results will be copied to the central dist folder. The resulting package inside the dist folder consists of the CDS server hosting the form UI and the admin UI as well as a sandbox Fiori launchpad to start the individual UIs.

To start the generated package, just run npm install and npm start inside the dist folder. This installs the dependencies and starts the CDS server hosting the UIs. Now the sandbox Fiori launchpad can be opened on http://localhost:4004/.

Debugging the Project

We have prepared two ways of debugging the Node.js part of the app easily:

Debugging with VSCode

The launch configuration "debug server in vscode" is part of the project and can be used to run the CAP server in debug mode and debug directly in VSCode (e.g. set breakpoints).

Note: the UI parts are not started by this launch configuration. To debug the interaction of server and UI, the form UI or admin UI has to be started separately with yarn start:ui-form or yarn start:ui-admin.

Debugging with any Node.js Debugging Client (e.g. Chrome)

Execute the following command to run the CAP server in debug mode, so Node.js debugging tools can connect. Form UI and admin UI are also started, like with yarn start:

yarn debug

You can then e.g. use the Node debugger which is built into the Chrome browser: enter chrome://inspect into the URL bar of Chrome and then select "Open dedicated DevTools for Node" to open the debugger.

Limitations

The local database uses in-memory mode. Data will be re-initialized after each restart.

The sample does not cover deployment of the app, where additional considerations e.g. regarding database and authentication are needed.

Known Issues

  • Starting the admin app with ?sap-iapp-state=... URL parameters (e.g. from a bookmark or when reloading) fails. Remove the URL parameter when you reload the page.

How to obtain support

The sample code is provided as-is. No support is provided.

References

Other projects demonstrating similar use-cases:

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].