- Create a database using Astra DB.
- Download the secure connect bundle to obtain connection credentials for your Astra DB.
- Get your Client ID_ and _Client Secret by creating your application token for your username and password.
Alternatively, have a teammate provide access to their Astra database.
- Install the DataStax Node.js driver:
DSE driver
- 1
- In your existing DataStax Node.js driver code, modify the connection code to use the Astra DB API.Include the absolute path to the secure connect bundle for your Cassandra database (`secure-connect-database_name.zip`) in the secureConnectBundle parameter, as shown in the following examples.
DataStax Node.js driver for Apache Cassandra
- 1
===DSE Node.js driver
- 1
- Run your Node.js script to connect to your Astra DB database:
- 1
If successful, the code builds, compiles, and connects to your Cassandra database.