web-src: Web directory for Apache or Nginx web server.
After reading this Readme, see ./web-src/coffee/Readme.md for more information about the CoffeeScript developing and its directory structure.
- Install Apache o Nginx web server with PHP5 module support.
- Fish shell.
- nodejs, npm and coffee-script (see below for installation of the latter using npm).
You can run the scripts/install.fish script, it will setup the current working directory, or you can do the following steps:
- Copy
web-srcinto the web directory (usually/var/www/htmlfor the Apache server). - Copy the
web-src/config/config.php.exampleintoweb-src/config/config.phpand open the file.- Check the configuration parameters at the
config.phpfile.
- Check the configuration parameters at the
- Ensure that the web server can access the "run" directory. It needs to write
./run/input-file.owllinkfile. You can execute (suppose "www-data" is the username associated to the web server):On some systems, you may have to configure SELinux parameters to enable Apache writing privileges. You can use thesudo chgrp -R www-data run sudo chown -R g+rwx run./tests/test-satisf-json.shfor checking if it is correctly set. - Also, configure PHP for not writing Warnings or Errrors on the HTML produced page. This is done by setting the following on
/etc/php.iniconfig file:This will log errors and warnings instead of showing on the generated HTML page. Seedisplay_errors = Off log_errors = Onerror_logconfiguration parameter, its value is the log filename and path, usually its deafult value is:/var/log/php/php_error.log.
- Install
nodejsandnpm. - Install coffee by executing
sudo npm install -g coffee-script - Test the
coffeecommand, it must open a CoffeeScript shell. Exit withCtrl d.
Use the scripts/compilar-coffee.sh script located under the root project directory.
- From Eclipse -> Help -> Install New Software... install
-
Install plugin Xtext complete SDK from
-
Install plugin Coffee script plugin https://github.com/adamschmideg/coffeescript-eclipse
- Create an External Tools Configuration
- Location: add path to compile coffee.sh
- Working Directory: path to Eclipse project.
At the ./test/ directory you'll find proper fish scripts for running tests.
Install PHPUnit for testing.
Execute:
cd tests
./test_php.fishUse doxygen or doxywizard (the Doxygen GUI) for compiling the PHP documentation on docs/doxygen.
- Execute
doxygencommand on the main directory, or - Execute
doxywizardand open the Doxyfile on the main directory; then click on the "run doxygen" button in the "run" tab.
We use codo. However, docco can be used too.
For installing codo:
sudo npm install -g codo
For installing docco:
sudo npm install -g docco
Compiling documentation:
./scripts/generate-coffee-api.fish from project root directory
Images :
- Traffic Lights downloaded from OpenClipart at: https://openclipart.org/detail/195669/green-traffic-light =======