/hellotwu

App for testing that TWU stack is correctly configured.

Primary LanguageJava

HelloTWU

App for testing that TWU stack is correctly configured.

You should have:

You should do:

  • Get a copy of the app code by clicking the 'Download ZIP' button on the righthand side of the github page (https://github.com/johncowie/hellotwu/archive/master.zip).
  • Create a postgres database named 'trailblazers'. Execute in the terminal: createdb trailblazers
  • Create a postgres superuser named 'postgres'. Execute in the terminal: createuser -s postgres

This should set up your machine to run the HelloTWU webapp and its tests properly.

To start the HelloTWU webapp, open up a terminal window and navigate into the hellotwu directory.

Run ./tools/ant/bin/ant start

Navigate to http://localhost:8080 in a browser. You should see a hello message.

Run ./tools/ant/bin/ant test

This will trigger a functional test that will perform an automated test of the app with firefox. If everything goes well, you will see a "Build Successful" message in your terminal window after the tests are executed.