JavaScriptMVC requires Java JRE 1.6 or greater for:
But your backend server can be written in any language.
Download Java here.
There are 2 ways to get JavaScriptMVC:
We (and the community) would much prefer you to develop with git. JavaScriptMVC is built around modular development so it fits in perfectly with git development. Plus we can trade improvements really easy.
Download the latest JavaScriptMVC.
Unzip the folder on your file system or web server.
If you are using this on a webserver,
unzip in a public folder where the server hosts static content.
JavaScriptMVC is comprised of four sub projects:
You want to fork each project and add it as a submodule to your project in a public folder (where your server keeps static content). If these words mean nothing to you, or you'd like more explanation, you might want to read Developing With Git.
Forking the repos looks like:
git submodule add git@github.com:_YOU_/steal.git public/steal
git submodule add git@github.com:_YOU_/jquerymx.git public/jquery
git submodule add git@github.com:_YOU_/documentjs.git public/documentjs
git submodule add git@github.com:_YOU_/funcunit.git public/funcunit
Notice that the javascriptmvc repository is put in a jquery folder.
After installing the repository, run:
[WINDOWS] > steal\js steal\make.js
[Lin/Mac] > ./steal/js steal/make.js
In your public (or static) folder, you should have something that looks like:
static
\documentjs - DocumentJS library
\funcunit - FuncUnit testing library
\jquery - jQuery and MVC plugins
\steal - compression and build system
\js.bat - Windows Rhino shortcut
\js - Mac/Linux Rhino shortcut
We are constantly improving JMVC. If you're using git, you can just pull changes. Otherwise, to get the latest, most error free code, in a console, type:
C:\workspace\Cookbook>js documentjs\update
C:\workspace\Cookbook>js funcunit\update
C:\workspace\Cookbook>js jquery\update
C:\workspace\Cookbook>js steal\update./js and change \
to /.
Continue to Creating Cookbook.