hapi-rethinkdb-thinky

0.3.0 • Public • Published

hapi-rethinkdb-thinky

Hapi plugin that automatically loads your Thinky models for RethinkDB.

Install

npm install hapi-rethinkdb-thinky

Usage

Load plugin into your Hapi server as normal.

The default options are.

  defaults = {
    host: 'localhost',
    port: 28015,
    db: 'test',
    modelsDir: '/models'
  };

host, port, and db are for connecting to your RethinkDB instance.

modelsDir is the directory where you've placed your Thinky models. This plugin will attempt to require every file in this directory so only put Thinky models there. The directory should be relative to process.cwd() e.g. the directory where you start your node process.

Package Sidebar

Install

npm i hapi-rethinkdb-thinky

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • kylemathews