Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Latest commit

 

History

History
69 lines (49 loc) · 1.33 KB

README.md

File metadata and controls

69 lines (49 loc) · 1.33 KB

waigo-plugin-rethinkdb

Build Status NPM module Waigo channel on discord Follow on Twitter

This waigo plugin provides a database connection and corresponding model layer for working with RethinkDB databases.

Models:

  • src/models/acl
  • src/models/activity
  • src/models/cron
  • src/models/user

Database connections:

  • src/support/db/rethinkdb

Installation

$ npm install waigo-plugin-rethinkdb

Usage

Set your main database to be a RethinkDB db:

/* file: src/config/base.js */

module.exports = function(config) {
  ...

  config.db = {
    main: {
      type: 'rethinkdb',
      serverConfig: {
        db: 'waigo',
        servers: [
          {
            host: '127.0.0.1',
            port: 28015,
          }
        ],
      }
    }
  };

  ...
}

## Development

To run the tests:

$ npm install
$ npm test

License

MIT - see LICENSE.md