saltnpepa
v1.0.0
Published
push notifications for the open web.
Downloads
1
Readme
Salt-n-Peppa
A Node.js push notifications server for the open web
this is an express.js based project that currently uses MongoDb for the datastore. Currently this project only supports Firebase Cloud Messaging Service (previously Google Cloud Messaging Service). Apple, Windows, and Firefox support coming soon.
Installation
after cloning this repository install the dependencies
$ npm install
Prerequisites
- MongoDb Installation
- SSL Certificate
- FireBase Cloud Messaging API Key
Configuration
Create a javascript file named development.js
and save it to config/env/
module.exports = {
appPort: 8443,
db: 'mongodb://username:password@localhost/database',
sslKey: '/path/to/server.key',
sslCert: '/path/to/server.crt',
sslCA: '/path/to/server.csr',
sessionSecret: '<SecretSessionPath>',
gcmAPI: '<ChangeMe>'
};
Start Server
$ npm run start
Getting Started
Once the service is up and running the administration can be reached at https://localhost:8443/dashboard
and the subscription demo can be reached at https://localhost:8443
.