Giter Club home page Giter Club logo

aerogear-simplepush-server's Introduction

Aerogear SimplePush Server Build Status

This project is a Java server side implementation of the SimplePush Protocol specification from Mozilla that describes a JavaScript API and a protocol which allows backend/application developers to send notification messages to their web applications. Originally SimplePush was introduced for Firefox OS but there are plans to establish the API on the desktop and mobile browsers as well.

Firefox OS v1.1 uses SimplePush as its Push Notification technology. Firefox OS Push Notifications are designed for one thing โ€“ waking up apps. They do not deal with data, desktop notifications and other features, since there are other Web APIs that provide them. From the very beginning SimplePush was designed to explicitly not carry any payload. Instead a version number is sent to the client. Based on that version number the client can perfom an action, e.g. refresh a view of data.

Mozilla published a very detailed article that explains the API in depth.

AeroGear SimplePush consists of the following modules:

  • common
    Just common classes used by multiple modules in the project.

  • datastores
    Contains implementations of various datastores. Please see the specific datastore's readme for further details.

  • protocol
    The SimplePush Server Protocol provides interfaces for the protocol.

  • server-api
    An API for AeroGear SimplePush Server

  • server-core
    An implementation of AeroGear SimplePush Server API.

  • server-netty
    The SimplePush Server implementation that uses Netty 4.x.

  • server-vertx
    The SimplePush Server implementation that uses vert.x.

  • wildfly-module
    A WildFly/AS7 module for the SimplePush Server.

Please refer to the above modules documentation for more information.

Docker

You can use Docker to build and run SimplePush server. Follow the instructions to install docker.

The Docker image provided contains CouchDB and Redis which enables the functional tests that use these databases to be run.

Build a SimplePush Container

Build using github path

docker build -t simplepush github.com/aerogear/aerogear-simplepush-server

Build using cloned project

docker build -t simplepush .

Run integration tests

docker run -it simplepush

Run standalone Netty server

docker run -p 7777:7777 -w /home/aerogear-simplepush-server/server-netty -it simplepush mvn exec:java

Manually running test

You may want to trigger test using a different branch, perhaps to run the integration tests against that code base. This can be done by starting the image using a shell:

docker run -it simplepush /bin/bash

You'll need to start the databases (currently CouchDB and Redis):

/startdbs.sh

Now, you can clone your fork and checkout a branch. To run all tests including the integration/functional tests:

mvn install -Pcouchdb,redis

Port forwarding for Mac OS X

You'll need to configure your VirtualBox to support port forwarding for port 7777:

VBoxManage modifyvm "boot2docker-vm" --natpf1 "guestnginx,tcp,,7777,,7777"

aerogear-simplepush-server's People

Contributors

danbev avatar danielpassos avatar kborchers avatar lfryc avatar matzew avatar qmx avatar vibe13 avatar

Watchers

 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.