0.3.0 • Published 10 years ago

hapi-rethinkdb-thinky v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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.

0.3.0

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago