Coder Social home page Coder Social logo

hellogwt's Introduction

This project is a step-by-step Spring-GWT tutorial. It is inspired from the article written by Alex Tretyakov on 2012-08-30 Spring and GWT tutorial. Part 5 - UiBinder.

The project was created as a "Maven Project" with GWT cli-tool. Then files from hellogwt were added, commented and modified to run with SQLite instead of MySQL.

Steps

These are the steps:

  1. Spring Configuration
  2. Adding GWT
  3. GWT RPC services
  4. MyBatis and SQLite
  5. UIBinder
  6. Using a SplitLayoutPanel
  7. Internationalisation
  8. Hibernate and H2 (keeping MyBatis and SQLite in the configuration)
  9. JUnit tests
  10. GWT unit tests

Next steps:

  1. Use of GXT

Run the application

In command line

  1. Build the project by executing mvn clean install command. Now we have application war-file.
  2. If Tomcat is running, stop/kill it. ~/bin/apache-tomcat-6.0.43/bin/shutdown.sh
  3. Go to the tomcat installation folder
  4. Delete the temp and work folders. They only contain temporary files.
  5. Copy the war file target/hellogwt.war to <tomcat>/webapps/ folder.
  6. Start the server ~/bin/apache-tomcat-6.0.43/bin/startup.sh.
  7. Go to http://localhost:8080/hellogwt/.

If you have configured $HOME/.m2/settings.xml with a server called Tomcat6:

  1. If Tomcat is not running, start it. ~/bin/apache-tomcat-6.0.43/bin/startup.sh
  2. Build and deploy the project by executing mvn tomcat6:deploy command. You can use mvn tomcat6:redeploy if the war was deployed.
  3. Go to http://localhost:8080/hellogwt/.

In Eclipse

You need to install those plug-ins:

  • Eclipse Git Team Provider

Right-click on project and click on Run As > Run on Server.

In NetBeans

You need to install those plugins:

  • GWT4NB
  • JavaEE Base
  • Maven

Click on Run project or type F6.

Development

In Maven

  • mvn compile only compiles Java sources.
  • mvn gwt:compile only compiles GWT module and writes extras.
  • mvn test run JUnit tests.
  • mvn gwt:test run GWT unit tests.

In NetBeans

  1. Define breakpoints if needed.
  2. Click on Debug Project or type Ctrl+F5.
  3. In the project custom menu, click on Run GWT code server.
  4. Visit the url said by the code server to install the bookmarklet.
  • To run JUnit tests, in the project menu, click on Test.
  • To run GWT unit tests, in the project custom menu, click on Run GWT unit tests.

License

The source code is licensed under Apache License 2.0.

hellogwt's People

Contributors

eliovir avatar

Watchers

James Cloos 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.