X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=notes%2Fdevelopers.txt;h=a95e4bf1255f22cf94a1d5e835eeffc276a8d561;hp=14dd86abe17e5ce520c77d15d89a1f93f38267bc;hb=87b1be54f2c94566702dc429a70425905932618a;hpb=03c57643aed47db6b974a3bd35b707c284e584a5 diff --git a/notes/developers.txt b/notes/developers.txt index 14dd86a..a95e4bf 100644 --- a/notes/developers.txt +++ b/notes/developers.txt @@ -13,6 +13,18 @@ get nodejs, sudo make install, ln -s /usr/local/bin/npm ~/bin/npm if needed cd .../mkws; make check +Apache +------ +You need to set up a local apache. + * add 'mkws' in /etc/hosts to point to 127.0.0.2 + * symlinked .../mkws/tools/apache2/mkws-heikki to /etc/apache/sites-available + * a2ensite mkws-heikki + * a2enmod rewrite + * a2enmod headers + * service apache2 reload + * Check that your browser sees somethig in http://mkws/ and + http://mkws/jasmine-popup.html. If need be, enable javascript etc. + Libraries --------- @@ -33,7 +45,7 @@ test page, wait 3 seconds for success and shutdown windows. Include files ------------- -The whitepaper says to include mkws-complete.js. This file is made by concatenating +The manual says to include mkws-complete.js. This file is made by concatenating a number of files (see Makefile). For us developers, it is easier to include the raw files, as in @@ -62,9 +74,17 @@ Most (all?) code work happens in mkws.js. Unit tests ---------- +Tests are based on jasmine. a general description of jasmine is on +http://jasmine.github.io/1.3/introduction.html + If you want understand the test than you can look at mkws/test/spec/mkws-config.js and mkws/test/spec/mkws-pazpar2.js . See also mkws/test/README.txt +The test scripts are included from the test page, for example +mkws/examples/htdocs/jasmine-popup.html has + + + Structure of mkws.js