javaee7-websocket
javaee7-websocket copied to clipboard
WebSocket Protocol with Java API for WebSocket (JSR 356), WebSocket API (JS - W3C) and AngularJS deployed on WildFly 10
= WebSocket Java EE 7 - AngularJS - WildFly 10 Docker Maxime Gréau <@mgreau> :imagesdir: ./doc/img
image:https://travis-ci.org/mgreau/javaee7-websocket.svg?branch=master["Build Status", link="https://travis-ci.org/mgreau/javaee7-websocket"]
This project shows how to use the WebSocket Protocol with:
- Java API for WebSocket (from Java EE 7 specifications)
- WebSocket HTML 5 / Javascript API (from W3C)
- AngularJS framework
- Deployed on WildFly 10.0.0.Final on a Docker Container
- Build with Maven in a Docker Container
== Docker Way
[source,bash]
$ docker-machine create --driver virtualbox javaee7-websocket $ eval $(docker-machine env javaee7-websocket)
Build the project with Maven
$ docker-compose up
Deploy the app on WildFly in a Docker container
$ docker-compose -f deploy.yml up $ open http://$(docker-machine ip javaee7-websocket)
.Multiple matches in live (US OPEN) image::websocket_wildfly_angularjs_tennis.png[Screenshot of the WebSocket Java EE 7 demo with a severals matches and AngularJS deployed on WildFly]
== Install on your local WildFly 10 Application Server
. Clone this project:
git clone https://github.com/mgreau/javaee7-websocket
. Start wildfly:
$JBOSS_HOME/bin/standalone.sh
. Build the war and deploy it automatically with maven:
mvn clean package jboss-as:deploy
. Open your browser on http://localhost:8080/usopen/index.html