This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2018-03-21 17:14:51 +00:00
doc Payroll sumission API improved and test added 2017-09-18 17:13:18 +01:00
etc/code-point-open Added codepoint open data to etc. dir with LICENCE file 2017-09-21 13:15:20 +01:00
images fixes 2017-04-20 16:40:24 +01:00
lib Created role for Minion Jobs to make dev easier 2018-03-21 17:14:51 +00:00
log Added log folder and gitignore config 2016-09-15 16:55:27 +01:00
public Word wrap feedback in admin console 2017-10-23 15:02:18 +01:00
script Make leaderboard calc script executable 2017-09-08 13:12:56 +01:00
share fix DDL 2018-03-09 17:44:47 +00:00
t amended test to include a recurring period 2018-03-07 12:50:36 +00:00
templates revamped transaction list view 2018-03-15 16:02:17 +00:00
.gitignore Added initial Minion support and example test job 2018-03-20 19:24:48 +00:00
.travis.yml Disable postgres tests while investigating unrelated issue to current 2018-01-02 21:58:20 +00:00
CHANGELOG.md Changelog amended 2018-03-15 16:04:21 +00:00
cpanfile Added initial Minion support and example test job 2018-03-20 19:24:48 +00:00
make_leaderboards Fixed rank sending and added leaderboard creation script 2017-07-20 11:56:24 +01:00
pear-local_loop.conf Moved to full Mojolicious app. 2017-02-24 19:27:43 +00:00
pear-local_loop.development.conf Change proof storage to have a settable folder 2017-04-21 19:54:28 +01:00
pear-local_loop.testing.conf Update config and tests so deployment and testing use separate databases. 2017-03-08 18:52:04 +00:00
README.md Added initial Minion support and example test job 2018-03-20 19:24:48 +00:00

Pear LocalLoop Server

Current Status

Master: Build Status

Development: Build Status

Testing

To run the main test framework, first install all the dependencies, then run the tests:

cpanm --installdeps .
prove -lr

To run the main framework against a PostgreSQL backend, assuming you have postgres installed, you will need some extra dependencies first:

cpanm --installdeps . --with-feature postgres
PEAR_TEST_PG=1 prove -lr

Minion

to set up minion support, you will need to create a database and user for minion to connect to. In production his should be a PostgreSQL database, however an SQLite db can be used in testing.

To use the SQLite version, run the following commands:

cpanm --installdeps --with-feature sqlite .

And then add the following to your configuration file:

  minion => {
    SQLite => 'sqlite:minion.db',
  },

This will then use an SQLite db for the minion backend, at minion.db

Example PostgreSQL setup

# Example commands - probably not the best ones
# TODO come back and improve these with proper ownership and DDL rights
sudo -u postgres createuser minion
sudo -u postgres createdb localloop_minion
sudo -u postgres psql
psql=# alter user minion with encrypted password 'abc123';
psql=# grant all privileges on database localloop_minion to minion;