Skip to content
PNW Bible Quizzing
JavaScript CSS Perl TSQL Perl 6
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
docs
lib
static
t
templates
tools
.gitignore
README.md
app.pl
cpanfile
dest.watch

README.md

PNW Bible Quizzing

Web site, documents, statistics, and tools in support of the PNW Bible Quizzing program.

Setup

To setup this application in a new environment, you will need to ensure the following prerequisites are installed:

  • Perl
  • CPANminus (cpanm)
  • SQLite
  • libsass

Then perform the following from within the project's root folder:

cpanm -n -f --installdeps .

Run

To run the application for a development enviornment with auto-restart on code changes, you can perform the following:

morbo -v -w docs -w config -w lib -w templates app.pl

To run the application for a production enviornment, you can perform the following:

hypnotoad app.pl

Photo Optimization

Within ~/static/photos reside many JPG photo image files. These are automatically picked up and displayed at random across most rendered pages. Use the following procedure to optimize photos prior to add/commit:

for file in $( ls *.{jpg,png,gif} 2> /dev/null )
do
    name=$(echo $file | sed 's/\.[^\.]*$//')
    convert $file -resize 440\> $name.jpg
done
rm *.{png,gif}
jpegoptim -s *.jpg

Requires:

  • imagemagick
  • jpegoptim
You can’t perform that action at this time.