diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-10-04 19:50:38 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-10-04 19:50:38 -0400 |
| commit | 95df0e83fdb7f564d64b6c916e674e0db46c116d (patch) | |
| tree | b0e68ea99a5a57fdb95aa1046db8fe69d0aefbbb /examples/index.js | |
| parent | 7e525bc4ae191bde7cb40de2c489250cb3e0af0f (diff) | |
starting push notification module
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/examples/index.js b/examples/index.js index ad57a09..357ff60 100644 --- a/examples/index.js +++ b/examples/index.js @@ -50,15 +50,6 @@ var app = okcms.createApp({ image: {type: 'image'}, images: {type: 'triple-captioned-image-list'}, }, -// card: { -// id: {type: 'string', hidden: true}, -// title: {type: 'string'}, -// stack: {type: 'foreign-key', key: 'stack'}, -// }, -// stack: { -// id: {type: 'string', hidden: true}, -// title: {type: 'string'}, -// } }, resources: [ @@ -67,8 +58,6 @@ var app = okcms.createApp({ { type: 'bread' }, { type: 'test' }, { type: 'flour' }, -// { type: 'card' }, -// { type: 'stack' }, ], services: { @@ -95,7 +84,26 @@ var app = okcms.createApp({ dumpfm: { lib: require("./lib/okdumpfm"), - } + }, + + push: { + lib: require("./lib/okpush"), + mongodbUrl: "mongodb://localhost/okpush_example", + apn: { + connection: { + gateway: "gateway.sandbox.push.apple.com", + cert: "/path/to/cert.pem", + key: "/path/to/key.pem" + }, + feedback: { + address: "feedback.sandbox.push.apple.com", + cert: "/path/to/cert.pem", + key: "/path/to/key.pem", + interval: 43200, + batchFeedback: true + } + } + }, }, views: { |
