Installing JavaScriptMVC is as easy as making tea, but faster.
There are three methods.
The last two methods are the preferred way, for the following reasons:
checkout
tagThe third method seems to be the best one, because it contains all the advantages from the second one, plus it creates an encapsulated environment, which we can easily and quickly create or delete without affecting our current development environment setup.
For a fast tryout library, choose the first method. For the actual development, definitely choose the second one.
In this method, we will use a web interface on the JavaScriptMVC web page to configure and download the package:
Todo
under the local web server working directory.javascriptmvc-3.2.2
to the Todo
folder and start the web server.$ mkdir Todo && cp -r javascriptmvc-3.2.2/* Todo && cd Todo
That is it; we are all set and ready to go.
We assume that the reader knows and has installed Git.
If not, the following resources might be helpful:
In the following steps, we are going to install JavaScriptMVC for our Todo
example project:
Todo
:$ mkdir Todo && cd Todo
Todo
folder, create a new Git repository:$ git init
$ git submodule add git://github.com/bitovi/steal.git $ git submodule add git://github.com/bitovi/documentjs.git $ git submodule add git://github.com/bitovi/funcunit.git $ git submodule add git://github.com/jupiterjs/jquerymx jquery
$ git submodule init $ git submodule update
Syn
. Since it is already a submodule to the FuncUnit
project, all we need to do is initialize and update it:$ cd funcunit $ git submodule init $ git submodule update
Syn
to the master
branch:$ cd syn/ $ git checkout master
$ cd ../..
js
command to the root directory of the project:$ ./steal/js steal/make.js
The project directory should have following folder structure:
.git .gitmodules documentjs funcunit jquery js js.bat steal
That is it; we are all set and ready to go.
More about submodules in Git: http://git-scm.com/book/en/Git-Tools-Submodules
To install JavaScriptMVC using this method, we need to install Vagrant, which is a virtualized development tool wrapper around Oracle VM VirtualBox, an x86 and AMD64/Intel64 virtualization software package.
vagrant up
.This command creates a virtual environment and a projects directory. It also installs the web server. JavaScriptMVC framework will be placed in the Todo
directory.
Any changes we make inside the projects directory are immediately visible in web browser at http://192.168.111.111/
.
3.16.79.147