GithubHelp home page GithubHelp logo

hello-mvp4g's Introduction

What’s this ?

私がGWT及びMVP4Gを学習するためのプロジェクトです。

Launching Super Dev Mode

This sequence is GWT version 2.5.1 specific.

(see also: http://stackoverflow.com/a/18333050/4506703 )

  1. cd main
  2. Execute: mvn clean process-classes gwt:run-codeserver .
  3. Open URL: http://localhost:9876/ .
  4. Register 2 bookmarklets, “Dev Mode On” and “Dev Mode off”.
  5. Open link to http://localhost:9876/MainModule/ .
  6. Download *.gwt.rpc and move it to target/main-0.0.1-SNAPSHOT/MainModule/ .
  7. Execute on another terminal: mvn gwt:run .
  8. Open URL: http://localhost:8888/ .
  9. Select bookmarklet: “Dev Mode On” , and “Compile” .

MVP-pattern implementation using MVP4G

Webアプリにおいてモデルの大半はサーバサイドに存在すべきで、gwtで言えばこれはサービス呼び出しに該当します。

そのため今回のような単純なアプリだとモデルがほぼ無いものになるのはやむを得ませんが、例として十分とは言えないかも。

(実際のアプリケーションでは、サービス呼び出し(リモートコール)の事前チェックなども多いはずで、そういうものがモデルになる。)

Unit Testing using vanilla JUnit(, without GWTTestCase)

MVPパターンでロジックをビュー実装から分離することで, GWTTestCaseを使用せず素のJUnitでテストを行えるようにします。

スローテストを抑止する効果が期待できます。

hello-mvp4g's People

Contributors

yukihane avatar

Watchers

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