Difficulty: Beginner
Estimated Time: 5 - 10 minutes

The DataStax Node.js Driver for Apache Cassandra™ is a modern, feature-rich and highly tunable Node.js client library for Apache Cassandra and DSE using exclusively Cassandra’s binary protocol and Cassandra Query Language (CQL).

In this scenario, you will:

  • Connect to an Apache Cassandra™ instance with the DataStax Node.js driver
  • Use the driver to execute CQL statements against Apache Cassandra™ that do the following:
    • Insert a user into a table
    • Select that user back out
    • Update the user's email
    • Delete the user from the table
  • Process CQL query results programmatically

Congratulations! You now have the basic knowledge of using the DataStax Node.js driver for Apache Cassandra™.

Get your hands on the DataStax Drivers at DataStax Downloads

Help us make this better! Please give this scenario a ranking (click on the stars above).

tshirt

Try it out: DataStax Node.js Driver for Apache Cassandra™

Step 1 of 6

Start the Node.js REPL

Interact with Cassandra in the Node.js using the DataStax Node.js Driver for Apache Cassandra. In this scenario, you will walk through using CRUD operations against your instance through the Node.js Driver.

We will make this easy by running our commands from the Node.js REPL.

Wait for Cassandra to finish starting up, this shouldn't take long! When it is finished, start the REPL:

node


Now that the REPL is running, let's configure our connection to the instance.