Skip to content

Commit 8347ca8

Browse files
committed
initial repo commit
1 parent b5c8f91 commit 8347ca8

17 files changed

+12776
-41
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.swp
2+
sqlite.db
3+
node_modules/

.reuse/dep5

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Upstream-Name: <YOUR-REPO-NAME>
3-
Upstream-Contact: <YOUR-CONTACT (MAIL ADDRESS ETC.)>
4-
Source: <https://github.com/sap-samples/YOUR-REPO-NAME>
2+
Upstream-Name: odata-basics-handsonsapdev
3+
Upstream-Contact: DJ Adams <[email protected]>
4+
Source: https://github.com/SAP-samples/odata-basics-handsonsapdev
55
Disclaimer: The code in this project may include calls to APIs ("API Calls") of
66
SAP or third-party products or services developed outside of this project
77
("External Products").
@@ -16,22 +16,14 @@ Disclaimer: The code in this project may include calls to APIs ("API Calls") of
1616
alter, expand or supersede any terms of the applicable additional agreements.
1717
If you have a valid license agreement with SAP for the use of a particular SAP
1818
External Product, then you may make use of any API Calls included in this
19-
project's code for that SAP External Product, subject to the terms of such
19+
projects code for that SAP External Product, subject to the terms of such
2020
license agreement. If you do not have a valid license agreement for the use of
2121
a particular SAP External Product, then you may only make use of any API Calls
2222
in this project for that SAP External Product for your internal, non-productive
2323
and non-commercial test and evaluation of such API Calls. Nothing herein grants
2424
you any rights to use or access any SAP External Product, or provide any third
2525
parties the right to use of access any SAP External Product, through API Calls.
2626

27-
Files: <YOUR-FILE-OR-FOLDER-LIST>
28-
Copyright: <YEARS-RELEVANT-FOR-YOUR-PROJECT> SAP SE or an SAP affiliate company and <YOUR-PROJECT-NAME> contributors
27+
Files: *
28+
Copyright: 2022 SAP SE or an SAP affiliate company and odata-basics-handsonsapdev contributors
2929
License: Apache-2.0
30-
31-
Files: <THIRD-PARTY-FILE-OR-FOLDER-LIST>
32-
Copyright: <COPYRIGHT-OF-THIRD-PARTY-CODE>
33-
License: <LICENSE-OF-THIRD-PARTY-CODE>
34-
35-
Files: <ANOTHER-THIRD-PARTY-FILE-OR-FOLDER-LIST>
36-
Copyright: <COPYRIGHT-OF-ANOTHER-THIRD-PARTY-CODE>
37-
License: <LICENSE-OF-ANOTHER- THIRD-PARTY-CODE>

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Contributing
2+
3+
If you wish to raise an issue, please use the [issues](issues) facility in this repo, but bear in mind the scope of support described above. If you wish to contribute code, offer fixes or improvements, please send a pull request (PR). Due to legal reasons, contributors will be asked to accept a [Developer Certificate of Origin (DCO)](https://en.wikipedia.org/wiki/Developer_Certificate_of_Origin) on submitting their first PR to this project. This DCO acceptance can be done in the PR itself - look out for the CLA assistant that will guide you through the simple process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
4+

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Apache License
1+
Apache License
22
Version 2.0, January 2004
33
http://www.apache.org/licenses/
44

@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright [2022] [SAP SE]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSES/Apache-2.0.txt

+208
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
Apache License
2+
3+
Version 2.0, January 2004
4+
5+
http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION,
6+
AND DISTRIBUTION
7+
8+
1. Definitions.
9+
10+
11+
12+
"License" shall mean the terms and conditions for use, reproduction, and distribution
13+
as defined by Sections 1 through 9 of this document.
14+
15+
16+
17+
"Licensor" shall mean the copyright owner or entity authorized by the copyright
18+
owner that is granting the License.
19+
20+
21+
22+
"Legal Entity" shall mean the union of the acting entity and all other entities
23+
that control, are controlled by, or are under common control with that entity.
24+
For the purposes of this definition, "control" means (i) the power, direct
25+
or indirect, to cause the direction or management of such entity, whether
26+
by contract or otherwise, or (ii) ownership of fifty percent (50%) or more
27+
of the outstanding shares, or (iii) beneficial ownership of such entity.
28+
29+
30+
31+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions
32+
granted by this License.
33+
34+
35+
36+
"Source" form shall mean the preferred form for making modifications, including
37+
but not limited to software source code, documentation source, and configuration
38+
files.
39+
40+
41+
42+
"Object" form shall mean any form resulting from mechanical transformation
43+
or translation of a Source form, including but not limited to compiled object
44+
code, generated documentation, and conversions to other media types.
45+
46+
47+
48+
"Work" shall mean the work of authorship, whether in Source or Object form,
49+
made available under the License, as indicated by a copyright notice that
50+
is included in or attached to the work (an example is provided in the Appendix
51+
below).
52+
53+
54+
55+
"Derivative Works" shall mean any work, whether in Source or Object form,
56+
that is based on (or derived from) the Work and for which the editorial revisions,
57+
annotations, elaborations, or other modifications represent, as a whole, an
58+
original work of authorship. For the purposes of this License, Derivative
59+
Works shall not include works that remain separable from, or merely link (or
60+
bind by name) to the interfaces of, the Work and Derivative Works thereof.
61+
62+
63+
64+
"Contribution" shall mean any work of authorship, including the original version
65+
of the Work and any modifications or additions to that Work or Derivative
66+
Works thereof, that is intentionally submitted to Licensor for inclusion in
67+
the Work by the copyright owner or by an individual or Legal Entity authorized
68+
to submit on behalf of the copyright owner. For the purposes of this definition,
69+
"submitted" means any form of electronic, verbal, or written communication
70+
sent to the Licensor or its representatives, including but not limited to
71+
communication on electronic mailing lists, source code control systems, and
72+
issue tracking systems that are managed by, or on behalf of, the Licensor
73+
for the purpose of discussing and improving the Work, but excluding communication
74+
that is conspicuously marked or otherwise designated in writing by the copyright
75+
owner as "Not a Contribution."
76+
77+
78+
79+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
80+
of whom a Contribution has been received by Licensor and subsequently incorporated
81+
within the Work.
82+
83+
2. Grant of Copyright License. Subject to the terms and conditions of this
84+
License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
85+
no-charge, royalty-free, irrevocable copyright license to reproduce, prepare
86+
Derivative Works of, publicly display, publicly perform, sublicense, and distribute
87+
the Work and such Derivative Works in Source or Object form.
88+
89+
3. Grant of Patent License. Subject to the terms and conditions of this License,
90+
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
91+
no-charge, royalty-free, irrevocable (except as stated in this section) patent
92+
license to make, have made, use, offer to sell, sell, import, and otherwise
93+
transfer the Work, where such license applies only to those patent claims
94+
licensable by such Contributor that are necessarily infringed by their Contribution(s)
95+
alone or by combination of their Contribution(s) with the Work to which such
96+
Contribution(s) was submitted. If You institute patent litigation against
97+
any entity (including a cross-claim or counterclaim in a lawsuit) alleging
98+
that the Work or a Contribution incorporated within the Work constitutes direct
99+
or contributory patent infringement, then any patent licenses granted to You
100+
under this License for that Work shall terminate as of the date such litigation
101+
is filed.
102+
103+
4. Redistribution. You may reproduce and distribute copies of the Work or
104+
Derivative Works thereof in any medium, with or without modifications, and
105+
in Source or Object form, provided that You meet the following conditions:
106+
107+
(a) You must give any other recipients of the Work or Derivative Works a copy
108+
of this License; and
109+
110+
(b) You must cause any modified files to carry prominent notices stating that
111+
You changed the files; and
112+
113+
(c) You must retain, in the Source form of any Derivative Works that You distribute,
114+
all copyright, patent, trademark, and attribution notices from the Source
115+
form of the Work, excluding those notices that do not pertain to any part
116+
of the Derivative Works; and
117+
118+
(d) If the Work includes a "NOTICE" text file as part of its distribution,
119+
then any Derivative Works that You distribute must include a readable copy
120+
of the attribution notices contained within such NOTICE file, excluding those
121+
notices that do not pertain to any part of the Derivative Works, in at least
122+
one of the following places: within a NOTICE text file distributed as part
123+
of the Derivative Works; within the Source form or documentation, if provided
124+
along with the Derivative Works; or, within a display generated by the Derivative
125+
Works, if and wherever such third-party notices normally appear. The contents
126+
of the NOTICE file are for informational purposes only and do not modify the
127+
License. You may add Your own attribution notices within Derivative Works
128+
that You distribute, alongside or as an addendum to the NOTICE text from the
129+
Work, provided that such additional attribution notices cannot be construed
130+
as modifying the License.
131+
132+
You may add Your own copyright statement to Your modifications and may provide
133+
additional or different license terms and conditions for use, reproduction,
134+
or distribution of Your modifications, or for any such Derivative Works as
135+
a whole, provided Your use, reproduction, and distribution of the Work otherwise
136+
complies with the conditions stated in this License.
137+
138+
5. Submission of Contributions. Unless You explicitly state otherwise, any
139+
Contribution intentionally submitted for inclusion in the Work by You to the
140+
Licensor shall be under the terms and conditions of this License, without
141+
any additional terms or conditions. Notwithstanding the above, nothing herein
142+
shall supersede or modify the terms of any separate license agreement you
143+
may have executed with Licensor regarding such Contributions.
144+
145+
6. Trademarks. This License does not grant permission to use the trade names,
146+
trademarks, service marks, or product names of the Licensor, except as required
147+
for reasonable and customary use in describing the origin of the Work and
148+
reproducing the content of the NOTICE file.
149+
150+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to
151+
in writing, Licensor provides the Work (and each Contributor provides its
152+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
153+
KIND, either express or implied, including, without limitation, any warranties
154+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
155+
A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness
156+
of using or redistributing the Work and assume any risks associated with Your
157+
exercise of permissions under this License.
158+
159+
8. Limitation of Liability. In no event and under no legal theory, whether
160+
in tort (including negligence), contract, or otherwise, unless required by
161+
applicable law (such as deliberate and grossly negligent acts) or agreed to
162+
in writing, shall any Contributor be liable to You for damages, including
163+
any direct, indirect, special, incidental, or consequential damages of any
164+
character arising as a result of this License or out of the use or inability
165+
to use the Work (including but not limited to damages for loss of goodwill,
166+
work stoppage, computer failure or malfunction, or any and all other commercial
167+
damages or losses), even if such Contributor has been advised of the possibility
168+
of such damages.
169+
170+
9. Accepting Warranty or Additional Liability. While redistributing the Work
171+
or Derivative Works thereof, You may choose to offer, and charge a fee for,
172+
acceptance of support, warranty, indemnity, or other liability obligations
173+
and/or rights consistent with this License. However, in accepting such obligations,
174+
You may act only on Your own behalf and on Your sole responsibility, not on
175+
behalf of any other Contributor, and only if You agree to indemnify, defend,
176+
and hold each Contributor harmless for any liability incurred by, or claims
177+
asserted against, such Contributor by reason of your accepting any such warranty
178+
or additional liability. END OF TERMS AND CONDITIONS
179+
180+
APPENDIX: How to apply the Apache License to your work.
181+
182+
To apply the Apache License to your work, attach the following boilerplate
183+
notice, with the fields enclosed by brackets "[]" replaced with your own identifying
184+
information. (Don't include the brackets!) The text should be enclosed in
185+
the appropriate comment syntax for the file format. We also recommend that
186+
a file or class name and description of purpose be included on the same "printed
187+
page" as the copyright notice for easier identification within third-party
188+
archives.
189+
190+
Copyright [yyyy] [name of copyright owner]
191+
192+
Licensed under the Apache License, Version 2.0 (the "License");
193+
194+
you may not use this file except in compliance with the License.
195+
196+
You may obtain a copy of the License at
197+
198+
http://www.apache.org/licenses/LICENSE-2.0
199+
200+
Unless required by applicable law or agreed to in writing, software
201+
202+
distributed under the License is distributed on an "AS IS" BASIS,
203+
204+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205+
206+
See the License for the specific language governing permissions and
207+
208+
limitations under the License.

README.md

+24-25
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
1-
# SAP-samples/repository-template
2-
This default template for SAP Samples repositories includes files for README, LICENSE, and .reuse/dep5. All repositories on github.com/SAP-samples will be created based on this template.
1+
# Back to basics: OData
32

4-
# Containing Files
3+
[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/odata-basics-handsonsapdev)](https://api.reuse.software/info/github.com/SAP-samples/odata-basics-handsonsapdev)
54

6-
1. The LICENSE file:
7-
In most cases, the license for SAP sample projects is `Apache 2.0`.
8-
9-
2. The .reuse/dep5 file:
10-
The [Reuse Tool](https://reuse.software/) must be used for your samples project. You can find the .reuse/dep5 in the project initial. Please replace the parts inside the single angle quotation marks < > by the specific information for your repository.
5+
## Description
116

12-
3. The README.md file (this file):
13-
Please edit this file as it is the primary description file for your project. You can find some placeholder titles for sections below.
7+
This repository contains a simple OData service to accompany the "Back to basics: OData" series on the Hands-on SAP Dev live stream show.
148

15-
# [Title]
16-
<!-- Please include descriptive title -->
9+
## Getting started
1710

18-
<!--- Register repository https://api.reuse.software/register, then add REUSE badge:
19-
[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/REPO-NAME)](https://api.reuse.software/info/github.com/SAP-samples/REPO-NAME)
20-
-->
11+
After cloning this repo and moving into the repo top directory, first deploy to a local SQLite database and then start the service up:
2112

22-
## Description
23-
<!-- Please include SEO-friendly description -->
13+
```bash
14+
cds deploy --to sqlite
15+
cds run
16+
```
2417

2518
## Requirements
2619

27-
## Download and Installation
20+
To use this repository you can make use of a [GitHub Codespace](https://github.com/features/codespaces) - just open this repo up in a new codespace and you're all set.
21+
22+
## Download and installation
23+
24+
To enjoy these scripts, you don't have to download or install anything. But you can of course clone this repository to have the content available to you locally.
2825

29-
## Known Issues
30-
<!-- You may simply state "No known issues. -->
26+
## Support
3127

32-
## How to obtain support
33-
[Create an issue](https://github.com/SAP-samples/<repository-name>/issues) in this repository if you find a bug or have questions about the content.
34-
35-
For additional support, [ask a question in SAP Community](https://answers.sap.com/questions/ask.html).
28+
Support for the content in this repository is available during the [Hands-on SAP Dev](https://www.youtube.com/playlist?list=PL6RpkC85SLQABOpzhd7WI-hMpy99PxUo0) live stream episodes.
3629

3730
## Contributing
38-
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
31+
32+
Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file.
33+
34+
## Code of conduct
35+
36+
SAP adopts the Contributor's Covenant 2.0 across our open source projects to ensure a welcoming and open culture for everyone involved. Please follow the standard Code of Conduct link in this repository to find out more.
3937

4038
## License
39+
4140
Copyright (c) 2022 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](LICENSE) file.

app/App.view.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<mvc:View displayBlock="true" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc">
2+
<App>
3+
<Page title="Northwind Data">
4+
<List items="{path: '/Products'}" growing="true">
5+
<StandardListItem title="{ProductName}" description="{QuantityPerUnit}" />
6+
</List>
7+
</Page>
8+
</App>
9+
</mvc:View>

app/Component.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sap.ui.define([
2+
"sap/ui/core/UIComponent"
3+
], function (UIComponent) {
4+
"use strict";
5+
return UIComponent.extend("handsonsapdev.Component", {
6+
metadata : {
7+
manifest : "json"
8+
},
9+
init : function () {
10+
UIComponent.prototype.init.apply(this, arguments);
11+
}
12+
});
13+
});

0 commit comments

Comments
 (0)