Skip to content

fullcube/loopback-component-recurly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loopback-component-recurly

Connect Loopback with Recurly.

INSTALL

npm install loopback-component-recurly --save

SERVER.JS

In your server/server.js file add the following line before the boot(app, __dirname); line.

// Initialize the Recurly connector.
var recurly = require('loopback-component-recurly');

recurly.setupModels(app, {
  apiKey: '8c569d08675a4316aa80403fb97b9172',
  prefix: 'Account1'
});

recurly.setupModels(app, {
  apiKey: '7c919d08675a4316aa80403fb97b9367',
  prefix: 'Account2'
});

TESTING

Run the test suites.

  npm test

Run with debugging output on:

  export RECURLY_API_KEY_1=8c569d08675a4316aa80403fb97b9172
  export RECURLY_API_KEY_1=7c919d08675a4316aa80403fb97b9367
  DEBUG='loopback-component-recurly' npm test