Skip to content
carterpage edited this page Aug 9, 2011 · 14 revisions

Quick Start

The REALLY quick start

We keep a copy of the Yoga demo (Spring MVC) running here: http://yoga-demo-springmvc.cloudfoundry.com/

Download and run a Yoga server locally

Download source code

$ git clone git://github.com/skyscreamer/yoga.git yoga
Cloning into yoga...
remote: Counting objects: 2028, done.
remote: Compressing objects: 100% (774/774), done.
remote: Total 2028 (delta 676), reused 2027 (delta 676)
Receiving objects: 100% (2028/2028), 300.86 KiB, done.
Resolving deltas: 100% (676/676), done.

Install Maven artifacts

$ cd yoga
$ mvn install
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.134s
[INFO] Finished at: Tue Aug 09 08:48:23 EDT 2011
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------

Start Spring MVC demo

$ cd yoga-demos/yoga-demo-springmvc/
$ mvn jetty:run
...
2011-08-09 08:49:57.117::INFO:  Started [email protected]:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

... or Start the RESTEasy demo

$ cd yoga-demos/yoga-demo-resteasy/
$ mvn jetty:run
...
2011-08-09 08:56:01.213::INFO:  Started [email protected]:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

Try it out

Once the demo is started, load the home page in your web browser: http://localhost:8080/

Click around on some of the URLs to get an idea for how selectors control the data returned. Run the demo race to see a simulation of Yoga versus traditional REST navigation from a user perspective.