addons

Addons securely sets your Addons.io env vars.

Node.js module for Addons.io

Using this module you can dynamically download your sevice api keys from Addons.io

Stop your node server if it is running.

Run this in your terminal:

npm install addons

Add this to your javascript, server.js or otherwise:

var addons = require('addons');
addons();

Set environment variables and restart your server:

ADDONS_API_ID='YOUR_ADDONS_API_ID_HERE' ADDONS_AUTH_TOKEN='YOUR_ADDONS_AUTH_TOKEN_HERE' node server.js

Run this in your terminal when your Addons.io settings change (anytime addons.json is updated):

rake addons:heroku:push

Test App repo