Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

tent/contacts-service

Repository files navigation

contacts-service

Syncs Tent contacts with localStorage and exposes it to other (whitelisted) apps via a simple postMessage API.

Configuration

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

API Client

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)

About

Sync Tent contacts with localStorage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published