Sign inSign up

postup/browserpush-app

By postup

Updated over 7 years ago

PostUp BrowserPush App

Image
0

642

postup/browserpush-app repository overview

Build Status

This is the deployable web application for Postup to test the browser push functionality.

This web app should be mounted inside a nodejs Docker container and then have the npm install command run.

To to start the web service:

1. cd to src  
2. run "node server.js" 
3. access locally at:
    http://localhost:9000/home/index.html

Port 9000 must be exposed by the container and mapped to the node express service.

The QA app is published to: https://browserpush.postup.com/home/index.html

To use the latest build do this:

1. git pull
2. first change the api in [**service-worker-handler**](src/root/sw-library/service-worker-handler.js), you may want one of these, or your own:
                                                                                                                           
       // xmlHttp.open("POST", "//testingapi.postup.com/api/pushevent");
       xmlHttp.open("POST", "//localhost:8081/service/api/pushevent");
                                                                                                        
3. then make sure the postup push app is the same as your service-worker-handler:

    *that is under "setting-push applications" edit your app and make sure the API Authorization String and the pulic key are the same as your local file is using.*

4. If there is a difference copy the ones from the push app and locally override the ones there.

Tag summary

Content type

Image

Digest

Size

149.3 MB

Last updated

over 7 years ago

docker pull postup/browserpush-app