├── .github └── workflows │ ├── build.yml │ └── deploy.yaml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── LICENSES └── Apache-2.0.txt ├── README.md ├── README1.md ├── README2.md ├── REUSE.toml ├── build.js ├── header-image.png ├── package-lock.json ├── package.json └── templateREADME.js /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: README builder 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: '0 */6 * * *' 6 | 7 | jobs: 8 | 9 | build: 10 | runs-on: ubuntu-latest 11 | continue-on-error: true 12 | steps: 13 | - name: Check out repository 14 | uses: actions/checkout@v2 15 | 16 | - name: Set up Node.js 17 | uses: actions/setup-node@v1 18 | 19 | - name: Install packages 20 | run: npm install 21 | 22 | - name: (Re)build README 23 | run: npm --silent run build > README.md 24 | env: 25 | GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} 26 | 27 | - name: Check for changes (fail if none) 28 | run: | 29 | ! git diff --quiet 30 | 31 | - name: Commit changes if required 32 | if: ${{ success() }} 33 | run: | 34 | git config --global user.email "thomas.jung@sap.com" 35 | git config --global user.name "jung-thomas" 36 | git add README.md 37 | git commit -m 'update README' || exit 0 38 | git push 39 | env: 40 | GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} -------------------------------------------------------------------------------- /.github/workflows/deploy.yaml: -------------------------------------------------------------------------------- 1 | name: Deploy Manually 2 | 3 | # Triggered manually 4 | on: workflow_dispatch 5 | 6 | env: 7 | REGISTRY: ghcr.io 8 | IMAGE_NAME: sap-samples/tech-bytes-kyma-cicd 9 | 10 | jobs: 11 | deploy-to-dev: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout repository 15 | uses: actions/checkout@v2 16 | 17 | - run: npm install 18 | 19 | - run: npm run build 20 | 21 | - name: Log in to the container registry 22 | uses: docker/login-action@v1 23 | with: 24 | registry: ${{ env.REGISTRY }} 25 | username: ${{ github.actor }} 26 | password: ${{ secrets.GITHUB_TOKEN }} 27 | 28 | - name: Extract metadata (tags, labels) for Docker 29 | id: meta 30 | uses: docker/metadata-action@v3 31 | with: 32 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 33 | 34 | - name: Build and push Docker image 35 | uses: docker/build-push-action@v2 36 | with: 37 | context: . 38 | push: true 39 | tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 40 | labels: ${{ steps.meta.outputs.labels }} 41 | 42 | - uses: steebchen/kubectl@v2.0.0 43 | with: 44 | config: ${{ secrets.DEV_KUBECONFIG }} 45 | command: apply -n tutorial -f ./k8s/dev_deployment.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | 63 | mta_archives/ 64 | default-*.json 65 | 66 | # dotenv environment variables file 67 | .env 68 | 69 | # Visual Studio Code 70 | .vscode 71 | 72 | #Python venv 73 | .venv_cf_aigenhub 74 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | The general context of this repository is as a consumable store of sample configuration & code for SAP Tech Bytes episodes and blog posts. If you find you do have something to contribute, for example to offer fixes or improvements, please send an appropriate 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/). Thank you! 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [2022] [SAP SE] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 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. 209 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![SAP Tech Bytes header image](header-image.png) 3 | 4 | [![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/sap-tech-bytes)](https://api.reuse.software/info/github.com/SAP-samples/sap-tech-bytes) 5 | 6 | This repository provides small sets of configuration & code relating to video episodes, blog posts and other content in the SAP Tech Bytes initiative, which it accompanies. 7 | 8 | ## Description 9 | 10 | Where there's sample code or configuration to share, specifically relating to an SAP Tech Bytes episode or post, you'll most likely find it here. The structure of this repository is simple - there are individual **branches**, each one relating to a specific SAP Tech Bytes episode or blog post. 11 | 12 | Perhaps most of the time you'll be arriving at this repository, coming from such an episode or blog post, so you'll be sent to the appropriate branch like that. But if you're starting here and want to find out to which SAP Tech Bytes episode or blog post a given branch-based sample relates, you'll find the back link in the README in that branch. 13 | 14 | ## Recent Branches 15 | - [2024-07-25-btp-sapaicore-genai-cf-py](https://github.com/SAP-samples/sap-tech-bytes/tree/2024-07-25-btp-sapaicore-genai-cf-py) by [Sygyzmundovych](https://github.com/Sygyzmundovych) 16 | - [cloud-foundry-basics](https://github.com/SAP-samples/sap-tech-bytes/tree/cloud-foundry-basics) by [nicoschoenteich](https://github.com/nicoschoenteich) 17 | - [2022-06-20-aibus-ber](https://github.com/SAP-samples/sap-tech-bytes/tree/2022-06-20-aibus-ber) by [noravth](https://github.com/noravth) 18 | - [2022-06-08-btp-cf-py-app-hanacloud-csv-flexload](https://github.com/SAP-samples/sap-tech-bytes/tree/2022-06-08-btp-cf-py-app-hanacloud-csv-flexload) by [Sygyzmundovych](https://github.com/Sygyzmundovych) 19 | - [2022-03-17-hana-javascript](https://github.com/SAP-samples/sap-tech-bytes/tree/2022-03-17-hana-javascript) by [jung-thomas](https://github.com/jung-thomas) 20 | - [2022-02-18-ui5-express-cf](https://github.com/SAP-samples/sap-tech-bytes/tree/2022-02-18-ui5-express-cf) by [nicoschoenteich](https://github.com/nicoschoenteich) 21 | - [2021-09-01-btp-cli](https://github.com/SAP-samples/sap-tech-bytes/tree/2021-09-01-btp-cli) by [qmacro](https://github.com/qmacro) 22 | 23 | ## Recent Blog Posts 24 | - [SAP Tech Bytes: Consume Data Using Destinations with an Approuter - Cloud Foundry Basics #3](https://blogs.sap.com/?p=1585731) by Nicolai Schoenteich (Wed Aug 03 2022) 25 | - This SAP Tech Byte is about how to use the Destination Service on Cloud Foundry and consume destinations using a node.js based approuter. The source code for this blog post can be found on https://github.com/SAP-samples/sap-tech-bytes/tree/cloud-foundry-basics/post3. Building on top of the previous blog post of this “Cloud Foundry Basics” series, where ... 26 | - [SAP Tech Bytes: UI Theme Designer - Applying Custom Theme to UI5 Application](https://blogs.sap.com/?p=1576337) by Nicolai Geburek (Mon Jul 18 2022) 27 | - In this blog post I want to share how to apply a custom theme that was built with the UI theme designer to a UI5 application that is not running in the SAP Fiori Launchpad (e.g. your local development environment). The UI theme designer is part of the SAP Fiori ... 28 | - [SAP Tech Bytes: Serve Web Page with an Approuter - Cloud Foundry Basics #2](https://blogs.sap.com/?p=1560724) by Nicolai Geburek (Fri Jun 17 2022) 29 | - This SAP Tech Byte is about how to use an approuter on Cloud Foundry to serve a web page. We will use the approuter to authenticate users and route them to the web page. The source code for this blog post can be found on https://github.com/SAP-samples/sap-tech-bytes/tree/cloud-foundry-basics/post2. Building on top of ... 30 | - [SAP Tech Bytes: Deploy a Static Web Page - Cloud Foundry Basics #1](https://blogs.sap.com/?p=1556380) by Nicolai Geburek (Fri Jun 10 2022) 31 | - This SAP Tech Byte is about how to deploy a static web page to Cloud Foundry in the most basic way that requires minimal configuration. The source code for this blog post can be found on https://github.com/SAP-samples/sap-tech-bytes/tree/cloud-foundry-basics/post1. There are a lot of complex scenarios and application architectures you can build ... 32 | - [SAP Tech Bytes: CF Python app to upload CSV files into HANA database in SAP HANA Cloud](https://blogs.sap.com/?p=1496417) by Witalij Rudnicki (Thu Jun 09 2022) 33 | - Some time ago I wrote about a way to quickly load data from CSV files into SAP HANA table using hana_ml Python package. It became quite a popular post. But it does require running some code to get a file loaded. Recently I was asked if that hana_ml functionality can ... 34 | - [SAP Tech Bytes: HANA Client Tools for JavaScript Developers - Part 4 XSJS and CAP](https://blogs.sap.com/?p=1519898) by Thomas Jung (Thu Apr 07 2022) 35 | - Introduction In this blog post series, we’ve explored several aspects of the HANA client tooling for JavaScript developers. In part one, we examined the differences between @sap/hana-client and hdb modules. In part two, we saw how to optimize our code using Promises / Async / Await. Then in part three, ... 36 | - More on [SAP Community Blog](https://community.sap.com/t5/tag/sap-tech-bytes/tg-p) 37 | 38 | ## Recent Videos 39 | - [Deploy a Static Web Page – Cloud Foundry Basics #1](https://www.youtube.com/watch?v=ZfxKnOZSnKk) (Mon Jul 25 2022) 40 | - [Exploring the SAP Discovery Center](https://www.youtube.com/watch?v=DJ9jVuGQZNM) (Mon Jul 18 2022) 41 | - [Add Chatbots to SAP S/4HANA, Part II -- Access Backend Data With #SAPBTP Destinations](https://www.youtube.com/watch?v=K5u5sVajBqk) (Tue Jul 12 2022) 42 | - [Exploring the SAP Audit Log Service - Store audit log entries in the Object Store](https://www.youtube.com/watch?v=xoEop0RCB7k) (Mon Jul 11 2022) 43 | - [Exploring the SAP Audit Log Service - Using SAP Cloud Integration](https://www.youtube.com/watch?v=gAzOeKIrepM) (Mon Jul 04 2022) 44 | - [Add Chatbots to S/4HANA, Part I -- Set Up Fiori Launchpad](https://www.youtube.com/watch?v=9mqU3uYFQbY) (Thu Jun 30 2022) 45 | - More on [SAP Developers YouTube Channel](https://www.youtube.com/playlist?list=PL6RpkC85SLQC3HBShmlMaPu_nL--4f20z) 46 | 47 | ## Requirements 48 | 49 | Requirements may differ from sample to sample, so please see the individual README files as appropriate. 50 | 51 | ## Download and installation 52 | 53 | To enjoy this content, 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. 54 | 55 | From there, in order to try out a sample, simply check out the desired branch, and follow the instructions in the README there. 56 | 57 | ## Support 58 | 59 | For the most part, this content is provided "as-is" with no other support. But we will certainly also respond to well-formed and detailed issues raised against this repository. 60 | 61 | ## Contributing 62 | 63 | The general context of this repository is as a consumable store of sample configuration & code for SAP Tech Bytes episodes and blog posts. If you find you do have something to contribute, for example to offer fixes or improvements, please send an appropriate 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/). Thank you! 64 | 65 | ## License 66 | 67 | 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](LICENSE) file. 68 | -------------------------------------------------------------------------------- /README1.md: -------------------------------------------------------------------------------- 1 | ![SAP Tech Bytes header image](header-image.png) 2 | 3 | [![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/sap-tech-bytes)](https://api.reuse.software/info/github.com/SAP-samples/sap-tech-bytes) 4 | 5 | This repository provides small sets of configuration & code relating to video episodes, blog posts and other content in the SAP Tech Bytes initiative, which it accompanies. 6 | 7 | ## Description 8 | 9 | Where there's sample code or configuration to share, specifically relating to an SAP Tech Bytes episode or post, you'll most likely find it here. The structure of this repository is simple - there are individual **branches**, each one relating to a specific SAP Tech Bytes episode or blog post. 10 | 11 | Perhaps most of the time you'll be arriving at this repository, coming from such an episode or blog post, so you'll be sent to the appropriate branch like that. But if you're starting here and want to find out to which SAP Tech Bytes episode or blog post a given branch-based sample relates, you'll find the back link in the README in that branch. -------------------------------------------------------------------------------- /README2.md: -------------------------------------------------------------------------------- 1 | ## Requirements 2 | 3 | Requirements may differ from sample to sample, so please see the individual README files as appropriate. 4 | 5 | ## Download and installation 6 | 7 | To enjoy this content, 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. 8 | 9 | From there, in order to try out a sample, simply check out the desired branch, and follow the instructions in the README there. 10 | 11 | ## Support 12 | 13 | For the most part, this content is provided "as-is" with no other support. But we will certainly also respond to well-formed and detailed issues raised against this repository. 14 | 15 | ## Contributing 16 | 17 | The general context of this repository is as a consumable store of sample configuration & code for SAP Tech Bytes episodes and blog posts. If you find you do have something to contribute, for example to offer fixes or improvements, please send an appropriate 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/). Thank you! 18 | 19 | ## License 20 | 21 | 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](LICENSE) file. -------------------------------------------------------------------------------- /REUSE.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | SPDX-PackageName = "sap-tech-bytes" 3 | SPDX-PackageSupplier = "DJ Adams " 4 | SPDX-PackageDownloadLocation = "https://github.com/SAP-samples/sap-tech-bytes" 5 | SPDX-PackageComment = "The code in this project may include calls to APIs (“API Calls”) of\n SAP or third-party products or services developed outside of this project\n (“External Products”).\n “APIs” means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products,or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project’s code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls." 6 | 7 | [[annotations]] 8 | path = "**" 9 | precedence = "aggregate" 10 | SPDX-FileCopyrightText = "2021 SAP SE or an SAP affiliate company and cloud-messaging-handsonsapdev contributors" 11 | SPDX-License-Identifier = "Apache-2.0" 12 | -------------------------------------------------------------------------------- /build.js: -------------------------------------------------------------------------------- 1 | const Parser = require('rss-parser') 2 | const request = require('then-request'); 3 | const parser = new Parser({ 4 | headers: { 5 | 'Accept': 'application/atom+xml' 6 | } 7 | }) 8 | 9 | const Handlebars = require('handlebars') 10 | const source = require('./templateREADME') 11 | const template = Handlebars.compile(source) 12 | const { Octokit } = require("@octokit/core") 13 | const { createActionAuth } = require("@octokit/auth-action") 14 | const auth = createActionAuth() 15 | 16 | /** @type String - URL to the YouTube SAP Tech Bytes Playlist */ 17 | const URLYouTube1 = 'https://www.youtube.com/feeds/videos.xml?playlist_id=PL6RpkC85SLQC3HBShmlMaPu_nL--4f20z' 18 | /** @type String - URL to the YouTube SAP 2 Minutes Of Playlist */ 19 | const URLYouTube2 = 'https://www.youtube.com/feeds/videos.xml?playlist_id=PL6RpkC85SLQBM78mD6AiJ1vKlSB7OWtUz' 20 | /** @type String - URL to query SAP Community for all Blogposts with tag sap-tech-bytes */ 21 | const URLSCN = 'https://content.services.sap.com/feed?type=blogpost&tags=sap-tech-bytes' 22 | 23 | const sort_by = (field, reverse, primer) => { 24 | const key = primer ? 25 | (x) => { 26 | return primer(x[field]) 27 | } : 28 | (x) => { 29 | return x[field] 30 | } 31 | reverse = !reverse ? 1 : -1 32 | return (a, b) => { 33 | return a = key(a), b = key(b), reverse * ((a > b) - (b > a)) 34 | } 35 | } 36 | 37 | const branchProcessing = async (item, octokit) => { 38 | let branchDetails = await octokit.request('GET /repos/{owner}/{repo}/branches/{branch}', { 39 | owner: 'SAP-samples', 40 | repo: 'sap-tech-bytes', 41 | branch: item.name 42 | }) 43 | item.url = branchDetails.data._links.html 44 | item.authorName = branchDetails.data.commit.author.login 45 | item.authorURL = branchDetails.data.commit.author.html_url 46 | item.authorAvatar = branchDetails.data.commit.author.avatar_url 47 | return Promise.resolve(item) 48 | } 49 | 50 | const getBranches = async octokit => { 51 | //Read List of Branches in the SAP Tech Bytes Repo 52 | let branches = await octokit.request('GET /repos/{owner}/{repo}/branches', { 53 | owner: 'SAP-samples', 54 | repo: 'sap-tech-bytes' 55 | }) 56 | 57 | //Delete the main branch from the list 58 | let indexOfMain = branches.data.indexOf(branches.data.find(obj => { 59 | return obj.name === 'main' 60 | })) 61 | if (indexOfMain !== -1) { branches.data.splice(indexOfMain, 1) } 62 | 63 | //Sort by branch name 64 | branches.data.sort(sort_by('name', true, (a) => a.toUpperCase())) 65 | 66 | //Return the most recent 6 branches and lookup the details for each branch 67 | branchesNew = await Promise.all(branches.data.slice(0, 6).map(item => branchProcessing(item, octokit))) 68 | 69 | return branchesNew 70 | } 71 | 72 | const getBlogPosts = async _ => { 73 | //Read List of Blog Posts in the SAP Community Netwwork with tag sap-tech-bytes 74 | const feed = await parser.parseURL(URLSCN) 75 | 76 | //Sort by date 77 | feed.items.sort(sort_by('pubDate', true)) 78 | 79 | //Return the most recent 6 Blog Posts 80 | const items = feed.items.slice(0, 6).map(item => { 81 | item.date = new Date(item.pubDate).toDateString() 82 | return item 83 | }) 84 | return items 85 | } 86 | 87 | const getYoutubeVideos = async _ => { 88 | //Read List of Videos in the SAP Tech Bytes Playlist on YouTube 89 | const feedNew1 = await parser.parseURL(URLYouTube1) 90 | 91 | //Add List of Videos in the "2 Minutes of..." Playlist 92 | const feedNew2 = await parser.parseURL(URLYouTube2) 93 | 94 | //Concat Lists of Videos 95 | const feedItems = [...feedNew1.items, ...feedNew2.items] 96 | 97 | //Sort by date 98 | feedItems.sort(sort_by('pubDate', true)) 99 | 100 | //Return the most recent 6 Videos 101 | const itemsNew = feedItems.slice(0, 6).map(item => { 102 | item.date = new Date(item.pubDate).toDateString() 103 | return item 104 | }) 105 | return itemsNew 106 | } 107 | 108 | const getStaticREADME = async _ => { 109 | const fs = require('fs') 110 | return [readme1, readme2] = await Promise.all([ 111 | fs.readFileSync('./README1.md', 'utf8'), 112 | fs.readFileSync('./README2.md', 'utf8') 113 | ]) 114 | } 115 | 116 | const main = async _ => { 117 | try { 118 | const authentication = await auth() 119 | const octokit = new Octokit({ auth: authentication.token }) 120 | let [branches, blogPosts, videos, [readme1, readme2]] = await Promise.all([ 121 | getBranches(octokit), 122 | getBlogPosts(), 123 | getYoutubeVideos(), 124 | getStaticREADME() 125 | ]) 126 | console.log(template({ readme1, readme2, blogPosts, videos, branches })) 127 | } catch (error) { 128 | console.log(`${error}`) 129 | process.exit(1) 130 | } 131 | } 132 | 133 | main() 134 | -------------------------------------------------------------------------------- /header-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/sap-tech-bytes/799fc6e23bb32c8b9f49eebacdf77b16d933d2ec/header-image.png -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-tech-bytes", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@octokit/auth-action": { 8 | "version": "1.3.2", 9 | "resolved": "https://registry.npmjs.org/@octokit/auth-action/-/auth-action-1.3.2.tgz", 10 | "integrity": "sha512-eCFGNq30e8ObTh6fwcmq8JRaGoputPQtPi9PTgbsEo+NPd5JrOoynI2bV7OpePRqgtATp1JRWC0y/3iXTB11ow==", 11 | "requires": { 12 | "@octokit/auth-token": "^2.4.0", 13 | "@octokit/types": "^6.0.3" 14 | } 15 | }, 16 | "@octokit/auth-token": { 17 | "version": "2.4.5", 18 | "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", 19 | "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", 20 | "requires": { 21 | "@octokit/types": "^6.0.3" 22 | } 23 | }, 24 | "@octokit/core": { 25 | "version": "3.2.5", 26 | "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.2.5.tgz", 27 | "integrity": "sha512-+DCtPykGnvXKWWQI0E1XD+CCeWSBhB6kwItXqfFmNBlIlhczuDPbg+P6BtLnVBaRJDAjv+1mrUJuRsFSjktopg==", 28 | "requires": { 29 | "@octokit/auth-token": "^2.4.4", 30 | "@octokit/graphql": "^4.5.8", 31 | "@octokit/request": "^5.4.12", 32 | "@octokit/types": "^6.0.3", 33 | "before-after-hook": "^2.1.0", 34 | "universal-user-agent": "^6.0.0" 35 | } 36 | }, 37 | "@octokit/endpoint": { 38 | "version": "6.0.11", 39 | "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", 40 | "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", 41 | "requires": { 42 | "@octokit/types": "^6.0.3", 43 | "is-plain-object": "^5.0.0", 44 | "universal-user-agent": "^6.0.0" 45 | } 46 | }, 47 | "@octokit/graphql": { 48 | "version": "4.6.0", 49 | "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.0.tgz", 50 | "integrity": "sha512-CJ6n7izLFXLvPZaWzCQDjU/RP+vHiZmWdOunaCS87v+2jxMsW9FB5ktfIxybRBxZjxuJGRnxk7xJecWTVxFUYQ==", 51 | "requires": { 52 | "@octokit/request": "^5.3.0", 53 | "@octokit/types": "^6.0.3", 54 | "universal-user-agent": "^6.0.0" 55 | } 56 | }, 57 | "@octokit/openapi-types": { 58 | "version": "5.1.0", 59 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-5.1.0.tgz", 60 | "integrity": "sha512-bodZvSYgycbUuuKrC/anCBUExvaSSWzMMFz0xl7pcJujxnmGxvqvcFHktjx1ZOSyeNKLfYF0QCgibaHUGsZTng==" 61 | }, 62 | "@octokit/request": { 63 | "version": "5.4.14", 64 | "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.14.tgz", 65 | "integrity": "sha512-VkmtacOIQp9daSnBmDI92xNIeLuSRDOIuplp/CJomkvzt7M18NXgG044Cx/LFKLgjKt9T2tZR6AtJayba9GTSA==", 66 | "requires": { 67 | "@octokit/endpoint": "^6.0.1", 68 | "@octokit/request-error": "^2.0.0", 69 | "@octokit/types": "^6.7.1", 70 | "deprecation": "^2.0.0", 71 | "is-plain-object": "^5.0.0", 72 | "node-fetch": "^2.6.1", 73 | "once": "^1.4.0", 74 | "universal-user-agent": "^6.0.0" 75 | } 76 | }, 77 | "@octokit/request-error": { 78 | "version": "2.0.5", 79 | "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", 80 | "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", 81 | "requires": { 82 | "@octokit/types": "^6.0.3", 83 | "deprecation": "^2.0.0", 84 | "once": "^1.4.0" 85 | } 86 | }, 87 | "@octokit/types": { 88 | "version": "6.10.0", 89 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.10.0.tgz", 90 | "integrity": "sha512-aMDo10kglofejJ96edCBIgQLVuzMDyjxmhdgEcoUUD64PlHYSrNsAGqN0wZtoiX4/PCQ3JLA50IpkP1bcKD/cA==", 91 | "requires": { 92 | "@octokit/openapi-types": "^5.1.0" 93 | } 94 | }, 95 | "@types/concat-stream": { 96 | "version": "1.6.0", 97 | "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.0.tgz", 98 | "integrity": "sha1-OU2+C7X+5Gs42JZzXoto7yOQ0A0=", 99 | "requires": { 100 | "@types/node": "*" 101 | } 102 | }, 103 | "@types/form-data": { 104 | "version": "0.0.33", 105 | "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", 106 | "integrity": "sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=", 107 | "requires": { 108 | "@types/node": "*" 109 | } 110 | }, 111 | "@types/node": { 112 | "version": "8.10.66", 113 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz", 114 | "integrity": "sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==" 115 | }, 116 | "@types/qs": { 117 | "version": "6.9.5", 118 | "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.5.tgz", 119 | "integrity": "sha512-/JHkVHtx/REVG0VVToGRGH2+23hsYLHdyG+GrvoUGlGAd0ErauXDyvHtRI/7H7mzLm+tBCKA7pfcpkQ1lf58iQ==" 120 | }, 121 | "asap": { 122 | "version": "2.0.6", 123 | "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", 124 | "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" 125 | }, 126 | "asynckit": { 127 | "version": "0.4.0", 128 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 129 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 130 | }, 131 | "before-after-hook": { 132 | "version": "2.1.1", 133 | "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.1.tgz", 134 | "integrity": "sha512-5ekuQOvO04MDj7kYZJaMab2S8SPjGJbotVNyv7QYFCOAwrGZs/YnoDNlh1U+m5hl7H2D/+n0taaAV/tfyd3KMA==" 135 | }, 136 | "buffer-from": { 137 | "version": "1.1.1", 138 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 139 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" 140 | }, 141 | "caseless": { 142 | "version": "0.12.0", 143 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 144 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 145 | }, 146 | "combined-stream": { 147 | "version": "1.0.8", 148 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 149 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 150 | "requires": { 151 | "delayed-stream": "~1.0.0" 152 | } 153 | }, 154 | "concat-stream": { 155 | "version": "1.6.2", 156 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 157 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 158 | "requires": { 159 | "buffer-from": "^1.0.0", 160 | "inherits": "^2.0.3", 161 | "readable-stream": "^2.2.2", 162 | "typedarray": "^0.0.6" 163 | } 164 | }, 165 | "core-util-is": { 166 | "version": "1.0.2", 167 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 168 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 169 | }, 170 | "delayed-stream": { 171 | "version": "1.0.0", 172 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 173 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 174 | }, 175 | "deprecation": { 176 | "version": "2.3.1", 177 | "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", 178 | "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" 179 | }, 180 | "entities": { 181 | "version": "2.2.0", 182 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", 183 | "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" 184 | }, 185 | "form-data": { 186 | "version": "2.5.1", 187 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", 188 | "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", 189 | "requires": { 190 | "asynckit": "^0.4.0", 191 | "combined-stream": "^1.0.6", 192 | "mime-types": "^2.1.12" 193 | } 194 | }, 195 | "handlebars": { 196 | "version": "4.7.7", 197 | "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", 198 | "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", 199 | "requires": { 200 | "minimist": "^1.2.5", 201 | "neo-async": "^2.6.0", 202 | "source-map": "^0.6.1", 203 | "uglify-js": "^3.1.4", 204 | "wordwrap": "^1.0.0" 205 | } 206 | }, 207 | "http-basic": { 208 | "version": "8.1.3", 209 | "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz", 210 | "integrity": "sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw==", 211 | "requires": { 212 | "caseless": "^0.12.0", 213 | "concat-stream": "^1.6.2", 214 | "http-response-object": "^3.0.1", 215 | "parse-cache-control": "^1.0.1" 216 | } 217 | }, 218 | "http-response-object": { 219 | "version": "3.0.2", 220 | "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz", 221 | "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==", 222 | "requires": { 223 | "@types/node": "^10.0.3" 224 | }, 225 | "dependencies": { 226 | "@types/node": { 227 | "version": "10.17.54", 228 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.54.tgz", 229 | "integrity": "sha512-c8Lm7+hXdSPmWH4B9z/P/xIXhFK3mCQin4yCYMd2p1qpMG5AfgyJuYZ+3q2dT7qLiMMMGMd5dnkFpdqJARlvtQ==" 230 | } 231 | } 232 | }, 233 | "inherits": { 234 | "version": "2.0.4", 235 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 236 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 237 | }, 238 | "is-plain-object": { 239 | "version": "5.0.0", 240 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", 241 | "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" 242 | }, 243 | "isarray": { 244 | "version": "1.0.0", 245 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 246 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 247 | }, 248 | "mime-db": { 249 | "version": "1.46.0", 250 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz", 251 | "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ==" 252 | }, 253 | "mime-types": { 254 | "version": "2.1.29", 255 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz", 256 | "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==", 257 | "requires": { 258 | "mime-db": "1.46.0" 259 | } 260 | }, 261 | "minimist": { 262 | "version": "1.2.5", 263 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 264 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 265 | }, 266 | "neo-async": { 267 | "version": "2.6.2", 268 | "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", 269 | "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" 270 | }, 271 | "node-fetch": { 272 | "version": "2.6.1", 273 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", 274 | "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" 275 | }, 276 | "once": { 277 | "version": "1.4.0", 278 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 279 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 280 | "requires": { 281 | "wrappy": "1" 282 | } 283 | }, 284 | "parse-cache-control": { 285 | "version": "1.0.1", 286 | "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", 287 | "integrity": "sha1-juqz5U+laSD+Fro493+iGqzC104=" 288 | }, 289 | "parse-github-url": { 290 | "version": "1.0.2", 291 | "resolved": "https://registry.npmjs.org/parse-github-url/-/parse-github-url-1.0.2.tgz", 292 | "integrity": "sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==" 293 | }, 294 | "process-nextick-args": { 295 | "version": "2.0.1", 296 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 297 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 298 | }, 299 | "promise": { 300 | "version": "8.1.0", 301 | "resolved": "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz", 302 | "integrity": "sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==", 303 | "requires": { 304 | "asap": "~2.0.6" 305 | } 306 | }, 307 | "qs": { 308 | "version": "6.9.6", 309 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz", 310 | "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==" 311 | }, 312 | "readable-stream": { 313 | "version": "2.3.7", 314 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 315 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 316 | "requires": { 317 | "core-util-is": "~1.0.0", 318 | "inherits": "~2.0.3", 319 | "isarray": "~1.0.0", 320 | "process-nextick-args": "~2.0.0", 321 | "safe-buffer": "~5.1.1", 322 | "string_decoder": "~1.1.1", 323 | "util-deprecate": "~1.0.1" 324 | } 325 | }, 326 | "rss-parser": { 327 | "version": "3.12.0", 328 | "resolved": "https://registry.npmjs.org/rss-parser/-/rss-parser-3.12.0.tgz", 329 | "integrity": "sha512-aqD3E8iavcCdkhVxNDIdg1nkBI17jgqF+9OqPS1orwNaOgySdpvq6B+DoONLhzjzwV8mWg37sb60e4bmLK117A==", 330 | "requires": { 331 | "entities": "^2.0.3", 332 | "xml2js": "^0.4.19" 333 | } 334 | }, 335 | "safe-buffer": { 336 | "version": "5.1.2", 337 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 338 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 339 | }, 340 | "sax": { 341 | "version": "1.2.4", 342 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 343 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" 344 | }, 345 | "source-map": { 346 | "version": "0.6.1", 347 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 348 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" 349 | }, 350 | "string_decoder": { 351 | "version": "1.1.1", 352 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 353 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 354 | "requires": { 355 | "safe-buffer": "~5.1.0" 356 | } 357 | }, 358 | "then-request": { 359 | "version": "6.0.2", 360 | "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz", 361 | "integrity": "sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA==", 362 | "requires": { 363 | "@types/concat-stream": "^1.6.0", 364 | "@types/form-data": "0.0.33", 365 | "@types/node": "^8.0.0", 366 | "@types/qs": "^6.2.31", 367 | "caseless": "~0.12.0", 368 | "concat-stream": "^1.6.0", 369 | "form-data": "^2.2.0", 370 | "http-basic": "^8.1.1", 371 | "http-response-object": "^3.0.1", 372 | "promise": "^8.0.0", 373 | "qs": "^6.4.0" 374 | } 375 | }, 376 | "typedarray": { 377 | "version": "0.0.6", 378 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 379 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" 380 | }, 381 | "uglify-js": { 382 | "version": "3.12.8", 383 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.12.8.tgz", 384 | "integrity": "sha512-fvBeuXOsvqjecUtF/l1dwsrrf5y2BCUk9AOJGzGcm6tE7vegku5u/YvqjyDaAGr422PLoLnrxg3EnRvTqsdC1w==", 385 | "optional": true 386 | }, 387 | "universal-user-agent": { 388 | "version": "6.0.0", 389 | "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", 390 | "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" 391 | }, 392 | "util-deprecate": { 393 | "version": "1.0.2", 394 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 395 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 396 | }, 397 | "wordwrap": { 398 | "version": "1.0.0", 399 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 400 | "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" 401 | }, 402 | "wrappy": { 403 | "version": "1.0.2", 404 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 405 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 406 | }, 407 | "xml2js": { 408 | "version": "0.4.23", 409 | "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", 410 | "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", 411 | "requires": { 412 | "sax": ">=0.6.0", 413 | "xmlbuilder": "~11.0.0" 414 | } 415 | }, 416 | "xmlbuilder": { 417 | "version": "11.0.1", 418 | "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", 419 | "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==" 420 | } 421 | } 422 | } 423 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-tech-bytes", 3 | "version": "1.0.0", 4 | "description": "Accompanying the SAP Developer Advocates SAP Tech Bytes initiative", 5 | "main": "build.js", 6 | "scripts": { 7 | "build": "node build.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/SAP-samples/sap-tech-bytes" 12 | }, 13 | "keywords": [], 14 | "author": "SAP", 15 | "license": "SEE LICENSE IN LICENSE", 16 | "homepage": "https://github.com/SAP-samples/sap-tech-bytes#readme", 17 | "bugs": { 18 | "url": "https://github.com/SAP-samples/sap-tech-bytes/issues" 19 | }, 20 | "dependencies": { 21 | "handlebars": "^4.7.6", 22 | "rss-parser": "^3.12.0", 23 | "then-request": "^6.0.2", 24 | "@octokit/core": "^3.2.5", 25 | "@octokit/auth-action": "^1.3.2" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /templateREADME.js: -------------------------------------------------------------------------------- 1 | module.exports = ` 2 | {{readme1}} 3 | 4 | ## Recent Branches 5 | {{#branches}}- [{{{name}}}]({{{url}}}) by [{{{authorName}}}]({{{authorURL}}}) 6 | {{/branches}} 7 | 8 | ## Recent Blog Posts 9 | {{#blogPosts}}- [{{{title}}}]({{{id}}}) by {{author}} ({{date}}) 10 | - {{summary}} 11 | {{/blogPosts}} 12 | - More on [SAP Community Blog](https://blogs.sap.com/tag/sap-tech-bytes/) 13 | 14 | ## Recent Videos 15 | {{#videos}}- [{{{title}}}]({{{link}}}) ({{date}}) 16 | {{/videos}} 17 | - More on [SAP Developers YouTube Channel](https://www.youtube.com/playlist?list=PL6RpkC85SLQC3HBShmlMaPu_nL--4f20z) 18 | 19 | {{readme2}}` 20 | --------------------------------------------------------------------------------