Koha Suomi services for different interfaces
Clone this repo to your server and set up configuration file koha_suomi_services.conf to the root.
Install these CPAN packages to your environment. There is also a script in scripts/Install.sh for automating this.
Try::[email protected]
Modern::[email protected]
Digest::[email protected]
[email protected]
Mojolicious::Plugin::[email protected]
DBIx::[email protected]
DBIx::Class::Migration
Exception::[email protected]
File::[email protected]
JSON::[email protected]
Add config file to root directory. Copy koha_suomi_services.conf.example to koha_suomi_services.conf and change values to match your system.
Add proxy pass to Apache to access the service. Change port to match your Mojolicious port.
ProxyPass /service http://localhost:3000 keepalive=On
ProxyPassReverse /service http://localhost:3000
You can use same database user as Koha uses, remember to grant permissions.
mysql -u root -p
CREATE DATABASE <databasename>
GRANT ALL ON <databasename>.* TO 'kohaadmin'@'localhost' IDENTIFIED BY '{koha user password}';
FLUSH PRIVILEGES;
QUIT
Start:
script/koha_suomi_services_daemon.sh start
Stop:
script/koha_suomi_services_daemon.sh stop
Restart:
script/koha_suomi_services_daemon.sh restart