Best practice to create our own packages?

We feel interested in creating a packages for RethinkDB. What is the best practice and advice we can take on?

@proyb2

It is possible to make packages and install to Meteor app

Existing RethinkDB driver is here:

For using RethinkDB with Meteor, you would install RethinkDB driver this way:

npm install rethinkdb

Then, for example at models at top of file, require it:

const r = require('rethinkdb');

And below add more code to use it:

if (Meteor.isServer()) {
  var connection = null;
  r.connect( {host: 'localhost', port: 28015}, function(err, conn) {
    if (err) throw err;
    connection = conn;
  });
}

https://rethinkdb.com/docs/guide/javascript/

For a general setup of a Meteor package, you can check out the MCP template package: