Depending on the programming knowledge you have, there are several official client drivers you can choose from regarding JavaScript, Ruby, Python, and Java. There are many community-supported drivers as well, such as PHP, Perl, and R. You can check them out at https://rethinkdb.com/docs/install-drivers/.
In this book, we will be using the RethinkDB JavaScript client driver. We will guide you through the installation and how to use the CRUD operations using this driver in the following steps:
- Install the RethinkDB JavaScript client driver via npm:
$ npm i rethinkdb
- Create a rethinkdb.js file that will contain the RethinkDB server connection details in the /configs/ directory, as follows:
// configs/rethinkdb.js
export default {
host: 'localhost',
port: 28015,
dbname: 'nuxtdb'
}
- Create a connection.js file for opening a RethinkDB server connection with the preceding connection details in the /core/ directory...