{"id":41481658,"url":"https://github.com/capire/xtravels","last_synced_at":"2026-01-23T17:21:04.067Z","repository":{"id":312083194,"uuid":"1011076044","full_name":"capire/xtravels","owner":"capire","description":"Travel booking app using master data from xflights","archived":false,"fork":false,"pushed_at":"2026-01-19T17:07:44.000Z","size":1219,"stargazers_count":10,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T19:37:36.046Z","etag":null,"topics":["cap","cds","data","federation","flights","reuse"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/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-06-30T09:07:44.000Z","updated_at":"2026-01-19T17:07:48.000Z","dependencies_parsed_at":"2025-08-28T18:51:04.603Z","dependency_job_id":"ad705338-1aab-4978-81dd-d81fa1779ad6","html_url":"https://github.com/capire/xtravels","commit_stats":null,"previous_names":["capire/xtravels"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/capire/xtravels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capire","download_url":"https://codeload.github.com/capire/xtravels/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capire%2Fxtravels/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","reuse"],"created_at":"2026-01-23T17:21:03.462Z","updated_at":"2026-01-23T17:21:04.059Z","avatar_url":"https://github.com/capire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @capire/xtravels\n\nA travel booking application using master data provided by [capire/xflights](https://github.com/capire/xflights).\n\n\n## Get it\n\n```sh\ngit clone https://github.com/capire/xtravels\ncd xtravels\nnpm install\n```\n\nThe package has dependencies to other `@capire` packages, including [_`@capire/xflights-data`_](https://github.com/capire/xflights/pkgs/npm/xflights-data), that can be pulled from [GitHub Packages](#using-github-packages) or from a [local workspace setup](#using-workspaces) as follows...\n\n\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, which requires you to `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\n\n### Using Workspaces\n\nAlternatively you can work with related packages in local workspace setups like so:\n\n1. Create a workspace root, e.g. at `cap/samples`:\n   ```sh\n   mkdir -p cap/samples \u0026\u0026 cd cap/samples\n   echo '{\"workspaces\":[\"*\",\"*/apis/*\"]}' \u003e package.json\n   ```\n\n2. Add related projects:\n   ```sh\n   git clone https://github.com/capire/xtravels\n   git clone https://github.com/capire/xflights\n   git clone https://github.com/capire/common\n   ```\n\n3. Install dependencies:\n   ```sh\n   npm install\n   ```\n\nThis will install all dependencies of all cloned projects, with cross dependencies between them being *symlinked* automatically by `npm install`. We can inspect this using `npm list`:\n\n```sh\nnpm ls @capire/xflights-data\n```\n\n... which should display something like this:\n\n```sh\nsamples@ ~/cap/samples\n├── @capire/xflights-data@0.1.5 -\u003e ./xflights/apis/data-service\n└─┬ @capire/xtravels@1.0.0 -\u003e ./xtravels\n  └── @capire/xflights-data@0.1.5 deduped -\u003e ./xflights/apis/data-service\n```\n\n\n## Run it\n\n```sh\ncds watch\n```\n\nWhich should print something like that:\n\n```sh\n...\n[cds] - server listening on { url: 'http://localhost:4004' }\n[cds] - server v9.4.0 launched in 444 ms\n[cds] - [ terminate with ^C ]\n```\n\n`Cmd-click` the http://localhost:4004 link in the terminal to open the app in a browser.\n\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\n\n## License\n\nCopyright (c) 2022 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","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapire%2Fxtravels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapire%2Fxtravels/lists"}