Configure your RethinkDB with one JSON object.
npm install rethink-config


npm install rethink-config --savetest.js in the root directory of this Git repo.``javascript
//In the real world you would use var rethinkConfig = require ('rethink-config');
var r = require("rethinkdbdash")();
var rethinkConfig = require ('./index');
rethinkConfig({
//Specify the rethinkdbdash object.
"r": r,
//Specify the database
"database": "Hello",
//Specify your tables in an array.
"tables": ["One", "Two", "Three"],
//Specify your indexes in an array
"indexes": [
//Each index needs to be specified a table and an index.
{
"table": "One",
"index": "IndexOne"
},
{
"table": "One",
"index": "IndexTwo"
},
{
"table": "Two",
"index": "IndexOne"
}
]
}, function(err) {
if (err) throw err
})
``
#### By Chris Cates
-- Thanks for checking out this npm module. Any questions, email me at hello@chriscates.ca.