Giter Site home page Giter Site logo

pauljandrew / pushserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from efforg/pushserver

0.0 3.0 0.0 783 KB

A server for sending push notifications to mobile apps

License: GNU Affero General Public License v3.0

JavaScript 84.75% Nginx 0.42% SaltStack 0.44% CSS 0.71% HTML 13.67%

pushserver's Introduction

push server

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

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

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

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

Angular app

See the www/README.md for details

pushserver's People

Contributors

mfb avatar

Watchers

Paul Andrew avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.