Giter Site home page Giter Site logo

cgb-gwt / spring-boot-gwt-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from feedm3/spring-boot-gwt

0.0 0.0 0.0 390 KB

A demo project for Spring Boot in conjunction with GWT

Home Page: https://spring-boot-gwt.herokuapp.com/

License: MIT License

Java 71.15% Groovy 26.82% HTML 2.02%

spring-boot-gwt-1's Introduction

Spring Boot GWT

Build Status License

Deploy

This is a demo project to show Spring Boot in conjunction with GWT. It uses the latest dependencies (Spring Boot 2.0.1 and GWT 2.8.2) and Java 8. The deployed app can be found here.

Run

To run this project you have to start Spring Boot and GWT separate. If you use IntelliJ, see the IDEA Settings readme for the correct configuration.

Spring Boot can also be started with gradle.

gradlew bootRun

Test

Currently only the server side code is tested. To run the tests use the following command

gradlew test

We use Spock as testing framework because of the great readability, syntax and built in features.

Outdated dependencies

To check for outdated dependencies

gradlew dependencyUpdates -Drevision=release

Build

The project con be build to a single jar file with an embedded tomcat:

gradlew clean build

After gradle build the project the finished jar file is in build/libs/spring-boot-gwt-1.0.0.jar and can simply be started with

java -jar build/libs/spring-boot-gwt-1.0.0.jar

Heroku

To deploy this app to heroku use the Deploy to Heroku Button on the top.

Heroku uses the gradle stage task to build the project. Because Spring Boot puts everything we need into the jar file we only have to tell heroku to execute this jar file.

Technical Details

Architecture

The client side and server side are strictly separated. The GWT files are in the client package (except the .gwt.xml) and the server side code is in the server package. All static client code like the index.html and css files are inside the static folder. Gradle will also put the compiled sources in this folder.

The communication is made via JSON for which reason we have make 2 implementations of the object we send (POJO in the frontend and POJO with javax annotations in the backend).

spring-boot-gwt-1's People

Contributors

feedm3 avatar joelhandwell 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.