This repository is for the RedHat Airport demo. Each component(iOS, Java, Angular) is currently separate. The deployment instructions are below.
- JBoss EAP(Weld CDI, RESTEasy, Hibernate)
- OpenShift
- JBoss Unified Push Server
- Hybrid iOS
- Estimote Beacons
- Apple Push Notification Server
- JavaScript(Webview)
- AngularJS (Digital Signage)
- Jenkins
Java/Red Hat Setup:
Install RHC
- Make sure you have ruby installed and ensure it is update to date
- Install rhc
sudo gem install rhc
rhc setup
- Login with your OpenShift account
- Generating a token will allow you to login without a password for a day
- Upload your SSH key to allow authentication to your remote server
- Set your domain name
For more details: Go here
Create JBoss EAP Application:
- Ensure RHC command line tools are set up
- To create the application use
rhc app-create *appname* jbosseap
- The application will generate in the current working directory
iOS Setup:
- cd into /redhat-airport-demo/Xcode/RedHat
sudo gem uninstall cocoapods
sudo gem install cocoapods
pod setup
pod update
- Open RedHat.xcworkspace
- Build and Run
Digital Signage/Webview Setup:
Front End Dependencies:
- Node.js
- Bower
- Grunt
- Gulp
Digital Signage Directory:
- Install bower components with
bower install
- Install node modules with
npm install
- Run client with
grunt watch
- Build production files with
grunt compile
Webview Directory:
- Install bower components with
bower install
- Install node modules with
npm install
- Run client with
gulp serve
- Build production files with
gulp build
Building Project
- Install Maven
- Pull Java Project from bitbucket/github
- Build the mobile app files and place the html/js files in src/main/webapp. Build the signage and place it in src/main/webapp/signage
- Using the command line navigate to the root of the project (Where the pom.xml is)
- Run command
mvn clean install
- Upon Success a [projectname].war file will be generated in the target folder
Using SFTP client (Filezilla):
Host: sftp://redhatairportdemo-fguanlao.rhcloud.com Username: 556e1ae34382ece1dd00010a
The id_rsa generated when you created the project will need to be added:
- Open FileZilla
- Go to FileZilla > Settings > SFTP
- Select "Add keyfile..."
- Select where you saved the "id_rsa" key
Deploying to OpenShift
- Using FileZilla connect to the JBoss Server
- On the server navigate to /var/lib/openshift/556e1ae34382ece1dd00010a/app-root/dependencies/jbosseap/deployments/
- Delete any ROOT.war or ROOT.war.deployed if it exists
- On your local side navigate to the "/target" folder in the java project folder
- Rename the [projectname].war file to ROOT.war
- Drag the war file to the server
- You will know it's deployed when a ROOT.war.deployed generates