Giter Club home page Giter Club logo

java-rest-backbone's Introduction

JPA and REST with backbone.js

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

Deploy the app to CloudBees (as WAR)

mvn bees:deploy -Dbees.appid=MY_APPID

Deploy the app to CloudBees (as source)

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

Bind the app to a database

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

java-rest-backbone's People

Contributors

michaelneale avatar swashbuck1r avatar

Watchers

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