{"id":20484589,"url":"https://github.com/sap-samples/cap-db-less-middleware","last_synced_at":"2025-03-05T16:19:49.174Z","repository":{"id":244943386,"uuid":"815086807","full_name":"SAP-samples/cap-db-less-middleware","owner":"SAP-samples","description":"This repository contains sample code for a CAP based middleware service. This service is database-less and is only using the in-memory sqlite for caching purpose. The service exposes an API suited for a certain use case providing employee data and the respective sales. The data comes from two different back-end service and gets aggregated within...","archived":false,"fork":false,"pushed_at":"2024-06-18T14:14:20.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-16T04:27:08.140Z","etag":null,"topics":["api","cap","middleware","sap"],"latest_commit_sha":null,"homepage":null,"language":"CAP CDS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SAP-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T10:20:13.000Z","updated_at":"2024-12-16T07:42:51.000Z","dependencies_parsed_at":"2024-06-18T14:16:36.866Z","dependency_job_id":"bcf4faf5-7873-41cb-8a80-e70e82c17744","html_url":"https://github.com/SAP-samples/cap-db-less-middleware","commit_stats":null,"previous_names":["sap-samples/cap-db-less-middleware"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP-samples%2Fcap-db-less-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP-samples%2Fcap-db-less-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP-samples%2Fcap-db-less-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP-samples%2Fcap-db-less-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SAP-samples","download_url":"https://codeload.github.com/SAP-samples/cap-db-less-middleware/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058223,"owners_count":20065066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cap","middleware","sap"],"created_at":"2024-11-15T16:24:09.792Z","updated_at":"2025-03-05T16:19:49.149Z","avatar_url":"https://github.com/SAP-samples.png","language":"CAP CDS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DB-less middleware solution with CAP\n\n[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/cap-db-less-middleware/)](https://api.reuse.software/info/github.com/SAP-samples/cap-db-less-middleware/)\n\n## Description\nWhen building front-end applications, we want to make data visually accessible and editable to the user. The application relies on correctness, availability and reliability of the data source to bring the best in class user experience to the end user. To guarantee the seamless integration, the back-end system needs to be aware of the application's requirements.\n\nUse the Cloud Application Programming Model to create a db-less middleware service to expose front-end relevant data via an OData API. This example consumes two different back-end APIs and condenses them into a format expected by the client.\n\nLearn more by reading [Create a simple db-less Middleware solution with CAP](https://community.sap.com/t5/technology-blogs-by-sap/create-a-simple-db-less-middleware-solution-with-cap/ba-p/13682689)\n\n## Requirements\n* A suitable IDE like Visual Studio Code or Neovim\n* Install the [Cloud Foundry CLI](https://developers.sap.com/tutorials/cp-cf-download-cli.html)\n* Install the [hana-cli](https://github.com/SAP-samples/hana-developer-cli-tool-example) (optional)\n* Create an [SAP BTP account](https://help.sap.com/docs/btp/sap-business-technology-platform/trial-accounts-and-free-tier)\n* Create an instance of [SAP HANA Cloud](https://developers.sap.com/tutorials/hana-cloud-deploying.html).\n* Have access to the [SAP Business Accelerator Hub](https://api.sap.com/)\n\n## Download and Installation\n1. Clone this GitHub repository to your local machine and open it in VS Code or any other suitable editor.\n2. Run `npm install` in the root to install all dependencies\n3. Connect to your SAP BTP subaccount:  \n`cf login -a \u003csubaccount-endpoint\u003e`\n4. Deploy the Sales Service into your account and create a binding to the SAP HANA Cloud instance.\n5. Run `cds watch` to try out the sample.\n\n## Project Structure\n\n**sales-service**\nIs a basic CAP OData service which simulates one of the two external services.\nYou can deploy and run that service on your SAP Business Technology Platform, Cloud Foundry runtimes. It uses SAP HANA Cloud as persistence.\nThe sample data is included with the project.\n\n**cap-middleware**\nThe cap-middleware, is the middleware service itself. It is a standard CAP project and follows it's project structure. Within the `.\\srv\\external` folder, you can find the external service imports.\nIf you want to learn more about integrating with external services, take a look at the [Service integration with SAP Cloud Application Programming Model Codejam content on GitHub](https://github.com/SAP-samples/cap-service-integration-codejam) repository.\n\n## Known Issues\nNo known issues.\n\n## How to obtain support\n[Create an issue](https://github.com/SAP-samples/\u003crepository-name\u003e/issues) in this repository if you find a bug or have questions about the content.\n \nFor additional support, [ask a question in SAP Community](https://answers.sap.com/questions/ask.html).\n\n## Contributing\nIf 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/).\n\n## License\nCopyright (c) 2024 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsap-samples%2Fcap-db-less-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsap-samples%2Fcap-db-less-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsap-samples%2Fcap-db-less-middleware/lists"}