{"id":15056814,"url":"https://github.com/azure-samples/cosmos-db-apache-cassandra-javascript-samples","last_synced_at":"2026-01-31T07:01:54.774Z","repository":{"id":195839240,"uuid":"693785465","full_name":"Azure-Samples/cosmos-db-apache-cassandra-javascript-samples","owner":"Azure-Samples","description":"Sample JavaScript applications for Azure Cosmos DB for Apache Cassandra","archived":false,"fork":false,"pushed_at":"2023-09-19T19:55:08.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-03-14T07:45:55.560Z","etag":null,"topics":["apache-cassandra","azure","cosmos-db","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://learn.microsoft.com/azure/cosmos-db/cassandra/manage-data-nodejs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure-Samples.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-19T17:53:41.000Z","updated_at":"2023-09-19T18:31:39.000Z","dependencies_parsed_at":"2023-09-19T20:40:28.685Z","dependency_job_id":null,"html_url":"https://github.com/Azure-Samples/cosmos-db-apache-cassandra-javascript-samples","commit_stats":null,"previous_names":["azure-samples/cosmos-db-apache-cassandra-javascript-samples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure-Samples%2Fcosmos-db-apache-cassandra-javascript-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure-Samples%2Fcosmos-db-apache-cassandra-javascript-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure-Samples%2Fcosmos-db-apache-cassandra-javascript-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure-Samples%2Fcosmos-db-apache-cassandra-javascript-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure-Samples","download_url":"https://codeload.github.com/Azure-Samples/cosmos-db-apache-cassandra-javascript-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544665,"owners_count":20308168,"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":["apache-cassandra","azure","cosmos-db","javascript","nodejs"],"created_at":"2024-09-24T21:56:38.189Z","updated_at":"2026-01-31T07:01:49.731Z","avatar_url":"https://github.com/Azure-Samples.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Cosmos DB for Apache Cassandra client library samples for JavaScript\n\n[![Validate Node.js projects](https://github.com/Azure-Samples/cosmos-db-apache-cassandra-javascript-samples/actions/workflows/validate.yml/badge.svg)](https://github.com/Azure-Samples/cosmos-db-apache-cassandra-javascript-samples/actions/workflows/validate.yml)\n\n## Getting started\n\nThis repo has a [devcontainer](https://containers.dev) environment making it easy to get started.\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/Azure-Samples/cosmos-db-apache-cassandra-javascript-samples?quickstart=1)\n\n### Run the app\n\nConfigure your Azure Cosmos DB credentials as environment variables.\n\n```bash\nexport COSMOS_ENDPOINT=\"\u003ccosmos-account-URI\u003e\"\nexport COSMOS_KEY=\"\u003ccosmos-account-PRIMARY-KEY\u003e\"\n```\n\n\u003e **💡 TIP**: If you don't have an Azure Cosmos DB account, [create a free account](https://cosmos.azure.com/try/).\n\nRun the quickstart sample app using the [`cassandra-driver`](https://www.npmjs.com/package/cassandra-driver) package from NPM.\n\n```bash\ncd 001-quickstart/\nnpm install cassandra-driver\nnpm run start\n```\n\n### Validate any changes you make\n\nIf you change the code, run the linter.\n\n```bash\ncd ./\nnpm install eslint-config-standard --no-save\n```\n\n```bash\ncd ./001-quickstart/\nnpx eslint .\n```\n\n### Troubleshooting certificate errors\n\nIf you use a self-signed certificate (emulator, Docker, etc.), you may need to disable Node's validation:\n\n```javascript\nconst client = new Client({\n  ...,\n  ...,\n  ...,\n  sslOptions: {\n    rejectUnauthorized: false\n  }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure-samples%2Fcosmos-db-apache-cassandra-javascript-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazure-samples%2Fcosmos-db-apache-cassandra-javascript-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure-samples%2Fcosmos-db-apache-cassandra-javascript-samples/lists"}