Syncs Tent contacts with localStorage and exposes it to other (whitelisted) apps via a simple postMessage API.
ENV | Required | Description |
---|---|---|
URL |
Required | URL of daemon. |
ALLOWED_ORIGIN |
Required | JavaScript Regex string (excluding / s) describing the allowed origin the daemon may accept requests from (e.g. "^https:\/\/example.com\/?"). |
SENTRY_URL |
Optional | See boiler-web for details. |
ALLOWED_ORIGIN_CSP |
Dev app | CSP source for frame-ancestors and frame-src |
Add this to your Gemfile:
gem 'contacts-service', :git => 'git://github.com/cupcake/contacts-service.git'
and tell it to configure Sprockets paths:
require 'contacts-service'
ContactsService::Sprockets.setup(sprockets_environment)