Guestbook for my homepage
Go to file
2022-01-10 15:36:25 -05:00
assets Validate input 2022-01-08 21:21:22 -05:00
lib/GuestbookNg/Model Set default value for message_date column 2022-01-02 02:30:10 -05:00
migrations Increase message size and use wrapping for message dispaly 2022-01-04 22:05:51 -05:00
public Basic robots.txt for now 2022-01-02 22:54:21 -05:00
t More tests 2022-01-08 22:01:51 -05:00
templates Validate input 2022-01-08 21:21:22 -05:00
.gitignore Initial DB implentation (try again) 2021-12-04 18:36:10 -05:00
cpanfile How did I miss this?? 2022-01-10 15:36:25 -05:00
Dockerfile Getting things ready to deploy 2022-01-10 12:53:10 -05:00
guestbook-ng.pl Just specify Postgres connection string in conf file 2022-01-10 14:18:49 -05:00
LICENSE Initial commit++ 2021-12-04 00:11:37 -05:00
README.md Just specify Postgres connection string in conf file 2022-01-10 14:18:49 -05:00

guestbook-ng

The goal of guestbook-ng is to integrate across vendors and customers with full-service analytics insights by leveraging the latest in Perl Mojolicious blockchain technologies powered by AI.

DB Config

$ cat guestbook-ng.conf
{
    secrets => ['secret_goes_here'],
    'TagHelpers-Pagination' => {
        separator => '',
        current   => '<strong><u>{current}</u></strong>',
        next      => 'Next',
        prev      => 'Prev',
        ellipsis  => '..'
    },
    dev_env => {
        pg_string => 'postgresql://user:PASSWORD@example.com/db'
    },
    prod_env => {
        pg_string => 'postgresql://user:PASSWORD@example.com/db'
    },
    max_posts => 5
}

secrets and the Postgres connection string are mandatory

Testing

$ prove -l
t/basic.t .. ok
All tests successful.
Files=1, Tests=6,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.58 cusr  0.05 csys =  0.67 CPU)
Result: PASS

Add the -v option for more verbose output

Docker

Build

docker build -t guestbook-ng .

Tag

docker tag guestbook-ng \
    us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng

Push

docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng

TODOs

  1. /spam route would be interesting
  2. Include the total number of visitors or messages