Guestbook for my homepage
Go to file
2022-04-01 22:38:14 -04:00
assets Revert "Move <h3> for article heading to the inside of the <section> tag" 2022-03-18 16:15:09 -04:00
lib/GuestbookNg/Model Implement /spam route 2022-01-12 15:18:34 -05:00
migrations Increase message size and use wrapping for message dispaly 2022-01-04 22:05:51 -05:00
public Don't let spam be indexed 2022-01-12 15:41:03 -05:00
t Implement /spam route 2022-01-12 15:18:34 -05:00
templates Change some <section> to <div> where a heading is not necessary (HTML linter findings) 2022-04-01 22:38:14 -04:00
.gitignore Initial DB implentation (try again) 2021-12-04 18:36:10 -05:00
cpanfile Implement post count 2022-01-11 19:51:45 -05:00
Dockerfile Getting things ready to deploy 2022-01-10 12:53:10 -05:00
guestbook-ng.pl Set session to 1 day 2022-02-09 19:33:47 -05:00
LICENSE Initial commit++ 2021-12-04 00:11:37 -05:00
README.md Implement /spam route 2022-01-12 15:18:34 -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. Visitor counter