parse-server-modules / parse-server-onesignal-push-adapter

OneSignal push adapter for parse-server
MIT License
32 stars 28 forks source link

How do I install these files? #5

Closed juliusbtesh closed 8 years ago

juliusbtesh commented 8 years ago

I am trying to deploy this adapter into my Parse Server that is going into AWS EB. If I download this adapter. Where exactly do I put these files? And which ones?? I have tried putting them in the node_modules folder but AWS says its not finding the files.

rob-64 commented 8 years ago

Add parse-server-onesignal-push-adapter to your package.json, then in your app.js/index.js file add:

var oneSignalPushAdapter = new OneSignalPushAdapter({
    oneSignalAppId: id,
    oneSignalApiKey: key'
});

var api = new ParseServer({
    databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
    ...
    push: {
        adapter: oneSignalPushAdapter
    },
    ...
});