Skip to content

LNGi/aerogear-unifiedpush-server-admin-ui

 
 

Repository files navigation

aerogear-unifiedpush-server-admin-ui Build Status

AeroGear Unified Push Server Admin UI

Setting Up The Development Environment

Pre-reqs:

Once the pre-reqs have been taken care of, run:

npm install

bower install

To run:

grunt server

To create a distribtion:

grunt

Using Mocks

If you want to use the mocks to test, uncomment these lines from index.html

<script src="bower_components/jquery-mockjax/jquery.mockjax.js"></script>
<script src="scripts/mocks/mock.js"></script>

Then run

grunt server

Using With JBoss EAP/Wildfly

note: The current version of the Unified Push Server now has the the Admin UI distribution "installed", for development, the instructions below still apply

Clone and run [https://github.com/aerogear/aerogear-unified-push-server](unified push server) as an exploded war.

Then in "Gruntfile.js" edit the "webapp" and "jbossweb" config params:

 // configurable paths
var yeomanConfig = {
    app: 'app',
    dist: 'dist',
    webapp: "/Users/lholmquist/develop/projects/aerogear-unified-push-server/src/main/webapp",
    jbossweb: "/Users/lholmquist/develop/jboss-as-7.1.1.Final/standalone/deployments/ag-push.war"
};

This will copy the contents to the "root" folder of both the cloned repo and the exploded war file( to keep them N'sync )

"webapp" should be the path where you cloned the push server.

"jbossweb" is the path of you exploded war running on an app server

Eventually, this should just be the contents of the dist folder, but for testing, well, you know

Make sure to rerun "grunt server" once you change these parameters

Now everytime you save a file, grunt is watching and will copy to these directories

Handlebar templates

This project uses handlebar templates( *.hbs )

Grunt is watching for changes in the "templates" directory and will recomplile "scripts/templates.js" with the new template

Known Issues

Sometimes the incorrect version of ember templates gets installed when doing a clean npm install , running npm install a second time can fix it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published