This is the web app running at http://averroes.uni-koeln.de/apm
It requires
It has been developed and tested in an Ubuntu 22.04 server with standard packages.
Besides the general requirements given above, development requires:
Clone the repository from Github.
Get all PHP dependencies with composer:
cd src/www
composer update
Get all Javascript dependencies for the web app and nodeJS with npm:
cd src/www
npm install
cd ../node
npm install
Create a testconfig.php
file under src/www/test/php/SiteMockup
with the correct
test database credentials.
Perform all PHP tests:
cd src/www/test/php
./phpunit .
If the installation is correct, all tests should pass in the master branch. If not, create an issue in Github to discuss possible solutions. Don't just fix the issues and push your master branch to Github as this may break other people's environments.
To run the app in development:
src/www
(see src/www/config.sample.php
). Notice especially the location
of the log file and the temporary directory for Collatex, these may have to
be created. For development purposes, you can use log/apm.log
for the main
log file and collatex/tmp
for the collatex temporary directory as these
are marked as ignored in .gitignore. You need to create them manually./src/db/dbcreation.sql
. src
Run:
./runphpwebserver
cd src/www/utilities;
./createuser <someuser>
./makeroot <someuser>
Once you are sure that the development environment is working, checkout or create a new branch for your changes. Don't work on the master branch.
To install in production:
createdist.bash
db
index.php
In an Apache server this can be done with the rewrite rules given
in url-rewrite-rules
. Copy them to the directory configuration
in the apache configuration or to an .htaccess file