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
Finn afc635fdb4
Added nicer explosions via try::tiny
2019-07-05 18:44:46 +01:00
.idea In progress commit 2019-07-02 15:21:01 +01: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 Added nicer explosions via try::tiny 2019-07-05 18:44:46 +01: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 added new relations 2019-07-03 17:36:36 +01:00
share Added in importing Supplier CSV 2019-07-05 15:30:31 +01:00
t amended stats 2018-06-18 12:14:34 +01:00
templates Added nicer explosions via try::tiny 2019-07-05 18:44:46 +01:00
.gitignore Added production config to gitignore 2017-09-22 12:31:43 +01:00
.travis.yml Disable postgres tests while investigating unrelated issue to current 2018-01-02 21:58:20 +00:00
CHANGELOG.md updated changelog 2018-06-05 14:47:43 +01:00
README.md added new relations 2019-07-03 17:36:36 +01:00
cpanfile In progress commit 2019-07-02 15:21:01 +01: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

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

Dev notes

Local test database

To install a local DB:

./script/deploy_db install -c 'dbi:SQLite:dbname=foodloop.db'

To do an upgrade of it after making DB changes to commit:

./script/deploy_db write_ddl -c 'dbi:SQLite:dbname=foodloop.db'
./script/deploy_db upgrade -c 'dbi:SQLite:dbname=foodloop.db'

To redo leaderboards:

./script/pear-local_loop recalc_leaderboards

To serve a test version locally of the server:

morbo script/pear-local_loop