{"repo":"stargate/stargate-mongoose","free":true,"listed":false,"github":"https://github.com/stargate/stargate-mongoose","clone":"git clone https://github.com/stargate/stargate-mongoose.git","description":"Mongoose Node.js package for Apache Cassandra / DataStax Astra","language":"TypeScript","stars":21,"topics":["cassandra","javascript","mongodb","mongoose","nodejs"],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"astra-mongoose astra-mongoose is a Mongoose driver for Data API. It supports connecting to DataStax Astra as well as self-hosted Data API on top of Apache Cassandra / DataStax Enterprise. 1. Quickstart 2. Architecture 3. Version compatibility 4. Sample Applications 5. Connecting to DSE/HCD 6. Features Using Collections 7. Features Using Tables 8. API Reference 9. Developer Guide Quickstart Prerequisites: Node.js ( =20.0.0), npm/yarn - Create a sample project called 'sample-app' - Initialize and add required dependencies OR - Set up an Astra database using the instructions here. Save your ASTRA API ENDPOINT and ASTRA APPLICATION TOKEN . - Create a file called index.js under the 'sample-app' directory and copy either of the snippets below into the file. ESM: CommonJS: - Execute below to run the app - Create a product - View the newly created product Architecture High level architecture Components - Cassandra Cluster - Apache Cassandra / DataStax Enterprise Cluster as backend database. - Data API - Data API is an open source HTTP API that allows interacting with Apache Cassandra/DSE Cluster. - JavaScript Clients that use Mongoose - Mongoose is an elegant MongoDB object modeling library for Node.js applications. By implementing a driver required by the Mongoose interface to connect to Data API instead of native MongoDB access layer, now a JavaScript client can store/retrieve documents on an Apache Cassandra/DSE Cluster. - Astra - Astra is a managed DBaaS service that provides a f","default_branch":null,"files":null,"tree":[],"storefront":"/r/stargate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stargate/stargate-mongoose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}