58 lines
1.3 KiB
Markdown
58 lines
1.3 KiB
Markdown
# 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. Have FUN
|