Coder Social home page Coder Social logo

zodsoft / spring-websockets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g00glen00b/spring-websockets

0.0 2.0 0.0 124 KB

A full application using Spring 4 WebSockets and AngularJS to make a real time application.

Java 87.54% JavaScript 11.57% CSS 0.89%

spring-websockets's Introduction

Building real time applications using Spring, AngularJS and WebSockets

This application demonstrates how you can write real time applications using Spring 4 and AngularJS. The tutorial to build this application can be found at http://g00glen00b.be/spring-websockets.

Installation

You need a JSR-356 compliant web container (like Tomcat 8) and at least Java 7. For building the application you need Maven and Bower. For Bower you also have to install Node.js (and NPM).

Building the application can be done by using Maven and Bower. The commands that have to be executed are:

bower install

mvn install

Frameworks

Spring framework

The application is built using Spring 4. Spring 4 offers WebSocket integration using a SockJS compliant WebSocket server.

Spring is also used to to divide our application using the MVC pattern and spring-data-jpa for the data access layer.

Cross cutting concerns like pushing notifications to the client are made using Spring AOP.

Dozer

Entities and model objects are mapped using Dozer. Dozer allows you to (deep) map objects one to one. In this case it's used to translate our entity to a model object.

Bower

Bower is a front-end package manager, in this example I'm using it to import the various front-end libraries we need such as:

  • AngularJS
  • Showdown (markdown rendering)
  • SockJS and STOMP (WebSocket connection)
  • Semantic UI (UI library)

AngularJS

AngularJS allows you to use the MVC pattern on the client (browser) so no DOM interaction is actually needed. It also offers integration with RESTful webservices through the angular-resource project.

Semantic UI

Semantic UI is a UI library (just like the popular Twitter Bootstrap), but in my opinion it has a pretty good naming convention which also makes it easier to understand and remember.

spring-websockets's People

Contributors

g00glen00b avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.