Backbone.js (http://backbonejs.org/) is a popular lightweight javascript framework for giving structure to complex javascript client-side applications. This works nicely with restful frameworks at the back end (the back end is a set of restful services). When you launch this ClickStart, it will create a Javascript/Backbone app, a source repo with continuous deployment via Jenkins, and a database.
Feel free to use this as a starter project. Launch the clickstart, clone the repo and every change you push will be built and deployed.
To deploy this manually:
Clone the app locally
git clone git://github.com/CloudBees-community/java-rest-backbone.git myapp
Verify it runs locally (this uses in-memory storage by default)
cd myapp
mvn bees:run
mvn bees:deploy -Dbees.appid=MY_APPID
bees app:create --withCD MY_APPID
[... your new CLOUDBEES GIT URL will be printed ...]
git remote add cloudbees YOUR_NEW_CLOUDBEES_GIT_URL
git push cloudbees master
Create a database
bees db:create -u MY_DB_USER -p MY_DB_PASS MY_DATABASE_ID
Bind the database to the app
bees app:bind -db DATABASE_ID -a MY_APPID -as appdb
Reconfigure the app to run in database mode, instead of in-memory. Note: "mode" is looked up as a ServletContext param by the app
bees config:set -a MY_APPID mode=db
Restart the app to apply new settings and resource bindings
bees app:restart -a MY_APPID