MRI (or jruby)
gem install ruby-maven
now there is a
rmvn and a
gwt command available.
rmvn bundle install will create bin-stubs in target/bin which allows to run the regular ruby commands after putting that bin-stubs directory into the PATH environment variable.
any rmvn command will place the gems for the application in the directory target/rubygems which is set as GEM_HOME and GEM_PATH by the
rmvn command or by the binstubs.
the first run of maven takes a while and for the rubygems part that is true too.
rmvn bundle install
will setup the database. now all gems are in place and the database as well.
no need for compilation just start the server and developement shell with
now you can launch a browser directly from that shell.
username can be choosen and the user will have a single group with the same name
password is behappy
per default root group can do everything, i.e. username root will get you in :)
if you start the server with SSO=true then the authentication goes to the url configured in
SSO=true gwt run
per default this uses the services at http://localhost:3000
first you need to compile the GWT application by
then you can start the server
now use the url to start:
per default root group can do everything.
each user belong to none, one or more groups. for each action on the controller you can declare the allowed groups. see also the guards file in app/guards one per controller.
root: can do everything
region: allows to edit region specific configuration
registrars: can add and modify (to certain extend) student/incident data
at: can edit student/incident data
the rails server is basically an API server offering access to the persistent model via a restful JSON services (mainly CRUD operations). this layer enforces permissions.
the UI is an ajax client coded with GWT. this layers shows only parts of the system where the user has permissions for them.
search remote API - pending
daily updates of remote data (users, ats, regions, locations)
notifications of AT to review old entries
purging of stale data (as configured per region)
http://github.com/mkristian/rails-resty-gwt gives you more detail info about rails and GWT and the tools used.