thomas-institut / apm

Digital Edition web application for the Averroes Project
GNU General Public License v3.0
2 stars 0 forks source link

APM

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.

Development

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:

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.

Installation in production

To install in production: