{"id":41481651,"url":"https://github.com/capire/xtravels-java","last_synced_at":"2026-01-23T17:21:00.389Z","repository":{"id":318485327,"uuid":"1071471240","full_name":"capire/xtravels-java","owner":"capire","description":"Travel booking app using master data from xflights built with CAP Java","archived":false,"fork":false,"pushed_at":"2026-01-21T16:14:08.000Z","size":1120,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-22T04:09:18.251Z","etag":null,"topics":["cap","cds","data","federation","flights","java","reuse"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/capire.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-07T11:53:19.000Z","updated_at":"2026-01-19T08:42:04.000Z","dependencies_parsed_at":"2025-10-07T14:37:14.803Z","dependency_job_id":null,"html_url":"https://github.com/capire/xtravels-java","commit_stats":null,"previous_names":["capire/xtravels-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/capire/xtravels-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capire","download_url":"https://codeload.github.com/capire/xtravels-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28696523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cap","cds","data","federation","flights","java","reuse"],"created_at":"2026-01-23T17:20:59.792Z","updated_at":"2026-01-23T17:21:00.381Z","avatar_url":"https://github.com/capire.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @capire/xtravels-java\n\nA travel booking application built with CAP Java using master data provided by [capire/xflights-java](https://github.com/capire/xflights-java).\n\n## Get it\n\n```sh\ngit clone https://github.com/capire/xtravels-java\ncd xtravels-java\nmvn package\n```\n\nThe package has dependencies to other `capire` packages, including [_`sap.capire/xflights-data`_](https://github.com/capire/xflights-java/packages/2693214), that can be pulled from [GitHub Packages](#using-github-packages) or from a [local workspace setup](#using-workspaces) as follows...\n\n### Using GitHub Packages\n\nReuse packages among the *[capire samples](https://github.com/capire)* are published to the [GitHub Packages](https://docs.github.com/packages) registry. This includes Maven packages as well as NPM packages.\n\n#### Authenticate for Maven\n\nAuthenticate to GitHub's Maven repository by adding the following to your `~/.m2/settings.xml`:\n\n```xml\n\u003cservers\u003e\n  \u003c!-- ... --\u003e\n  \u003cserver\u003e\n    \u003cid\u003egithub\u003c/id\u003e\n    \u003cusername\u003eUSERNAME\u003c/username\u003e\n    \u003cpassword\u003eTOKEN\u003c/password\u003e\n  \u003c/server\u003e\n\u003c/servers\u003e\n```\n\nAs password you're using a Personal Access Token (classic) with `read:packages` scope.\nRead more about it in [Authenticating to GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry).\n\n#### Authenticate for NPM\n\nRun `npm login` once like that:\n\n```sh\nnpm login --scope=@capire --registry=https://npm.pkg.github.com\n```\n\nWhen prompted for a password enter a Personal Access Token (classic) with `read:packages` scope.\nLearn more about that in [Authenticating to GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages).\n\nA successfull `npm login` adds entries like that to your local `~/.npmrc` file, which allow you to npm install @capire packages subsequently using `npm add` or `npm install` as usual:\n\n```properties\n@capire:registry=https://npm.pkg.github.com/\n//npm.pkg.github.com/:_authToken=\u003cgenerated token\u003e\n```\n\n### Using Workspaces\n\nAlternatively you can work with related packages in local workspace setups like so:\n\n1. Create a workspace root for NPM, e.g. at `cap/samples-java`:\n   ```sh\n   mkdir -p cap/samples-java \u0026\u0026 cd cap/samples-java\n   echo '{\"workspaces\":[\"*\",\"*/apis/*\"]}' \u003e package.json\n   ```\n\n2. Add related projects:\n   ```sh\n   git clone https://github.com/capire/xtravels-java\n   git clone https://github.com/capire/xflights-java\n   git clone https://github.com/capire/common\n   ```\n\n3. Install NPM dependencies:\n   ```sh\n   npm install\n   ```\n\n4. Install Maven dependencies:\n   ```sh\n   cd xflights-java \u0026\u0026 mvn install\n   ```\n\nFor Maven, this will share cross dependencies between projects via your local Maven repository placed at `~/.m2`.\nFor NPM, this will install all dependencies of all cloned projects, with cross dependencies between them being *symlinked* automatically by `npm install`.\n\n## Run it\n\nTo start the `xtravels` application, run the `Application` class in your preferred IDE.\nAlternatively, execute `mvn spring-boot:run` on the command line.\n\nClick the http://localhost:8080 link in the terminal to open the app in a browser.\n\nThe dependencies to the [xflights](https://github.com/capire/xflights-java) application are mocked automatically by CAP.\n\n### With xflights\n\nYou can also connect the `xtravels` application to a locally running [xflights](https://github.com/capire/xflights-java) application.\n\nStart the `xflights` application first, then start the `xtravels` application with the Spring Boot profiles `default` and `hybrid`.\nIt is recommended to configure the Spring Profiles in your IDE. For VS Code you can add the following to your launch configurations:\n\n```json\n{\n  \"type\": \"java\",\n  \"name\": \"xtravels (hybrid)\",\n  \"request\": \"launch\",\n  \"mainClass\": \"sap.capire.xtravels.Application\",\n  \"vmArgs\": \"-Dspring.profiles.active=default,hybrid\"\n}\n```\n\nAlternatively start the application on the command line by executing:\n\n```sh\nmvn spring-boot:run -Dspring-boot.run.profiles=default,hybrid\n```\n\n## Additional Examples\n\nFor more (extensive) examples, have a look at the [readme file in the xmpls folder](./xmpls/readme.md).\n\n## License\n\nCopyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This file 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%2Fcapire%2Fxtravels-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapire%2Fxtravels-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapire%2Fxtravels-java/lists"}