Sign inSign up

mgreau/javaee7-websocket

By mgreau

•Updated almost 10 years ago

WebSocket Protocol with Java API for WS (JSR 356) WebSocket API (JS - W3C) and Angular on WildFly 10

Image
0

1.4K

mgreau/javaee7-websocket repository overview

= 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⁠

Tag summary

Content type

Image

Digest

Size

273 MB

Last updated

almost 10 years ago

docker pull mgreau/javaee7-websocket