A server for sending push notifications to mobile apps
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
db
deploy
gulp
plugins/push
routes
test
www
.bowerrc
.dockerignore
.env.example
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
bower.json
deploy_checklist.md
docker-compose.yml
gulpfile.js
package.json
server.js

README.md

push server

Build Status

Hapi server app for creating and distributing push notifications

Table of Contents

Getting Started

npm install
bower install
gulp build
gulp syncDb

Running the server

Start the hapi server and set up watches on templates, js and css

gulp watch

App Configuration

App config is controlled via the node-config module.

To set push credentials, create a local.json file under the config dir and override the CREDENTIALS setting.

Alternately, you can use:

Securing the app

By default, the app exposes all API endpoints and the web UI. This would allow a 3rd party to send a correctly crafted notification object to the server and have it go to all subscribers.

You should ensure that wherever the app is running it either:

  • has an authentication layer
  • is running behind another server, nginx / apache etc., that restricts access to the relevant endpoints

Run tests

gulp test

API

Notifications

See the schema object for details of the object structure these endpoints accept

Subscriptions

See the schema object for details of the object structure these endpoints accept

Errors

See the schema object for details of the object structure these endpoints accept

Angular app

See the www/README.md for details