Subversion is nice, but if you just want to build the next great Web application, code generation is the answer. You can install the coherent Ruby gem and start right away.
sudo gem install coherent
This will automatically install the distil gem as a dependency. You’re now ready to build your first application. Type the following in a folder where you keep your projects:
coherent app sample
This will generate an application skeleton in the sample folder. Initially this application will no almost nothing. It loads a NIB and displays it, but it uses no data and has no real interaction. So let’s build a small image gallery.
cd sample
coherent gallery_sample gallery
This generates a NIB named gallery that contains a simple image viewer. Next edit the application HTML page at ~/src/pages/index.html and change the URL for the nib file:
var viewController= new coherent.ViewController({
nibUrl: "res/latest/main.jsnib"
});
Change this to reference the new gallery NIB file:
var viewController= new coherent.ViewController({
nibUrl: "res/latest/gallery.jsnib"
});
Now you can build your application by running distil. The first thing you’ll notice is that Distil checks out the Coherent source code into the ext/coherent folder. You can always update that folder so you’re tracking the latest and greatest version of the library.