Installation
Ajatus is a local Ajax application that only needs a working CouchDb installation to run.
CouchDb installation
Install CouchDb 0.7.0 or newer, and start it.
Edit your couch.ini -file by copying the last row as (Under "Couch Query Servers"):
application/javascript=/usr/local/bin/couchjs -f /usr/local/share/couchdb/server/main.js
to the end of the file.
This way CouchDB maps both content-types to the javascript query server. (If you are using some other query server do the same but with correct paths)
Ajatus installation
Download Ajatus and unzip it under the CouchDb DocumentRoot (by default /usr/local/share/couchdb/www/) and rename the folder to ajatus.
Accessing Ajatus
Point your browser to the CouchDb server, and the Ajatus directory under it. By default this is:
- http://localhost:5984/_utils/ajatus/application.html
If everything is OK Ajatus will now generate a database for itself and you can start using your new CRM.
Advanced setup
Installing Ajatus development version
Get Ajatus from Git
$ git clone http://repo.or.cz/r/ajatus.git
Link or copy the Ajatus main directory and its contents under the CouchDb DocumentRoot (by default /usr/local/share/couchdb/www/) and rename the folder to ajatus_dev.
Configuring
Currently the overriding of the default configuration is made at the end the js/ajatus.core.js -file.
If you wan't to run multiple instances of the ajatus (ie. trunk / stable)
you need to define two parameters:
application_url(in repository defaults to/_utils/ajatus_dev/)application_database_indentifier(in repository defaults todev)
Example how to run to different version (stable & trunk)
/usr/local/share/couchdb/www/ajatus (stable directory)
Inside /usr/local/share/couchdb/www/ajatus/js/ajatus.core.js make sure you have:
application_url: '/_utils/ajatus/',
application_database_indentifier: 'stable'
/usr/local/share/couchdb/www/ajatus_dev (symlink to checkout directory)
Inside /usr/local/share/couchdb/www/ajatus_dev/js/ajatus.core.js make sure you have:
application_url: '/_utils/ajatus_dev/',
application_database_indentifier: 'dev'