guestbook-ng/README.md

59 lines
1.3 KiB
Markdown
Raw Normal View History

2021-12-03 23:58:43 -05:00
# guestbook-ng
2021-12-04 00:11:37 -05:00
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.
2021-12-04 18:36:10 -05:00
## DB Config
$ cat guestbook-ng.conf
{
secrets => ['secret_goes_here'],
2021-12-12 01:50:07 -05:00
'TagHelpers-Pagination' => {
separator => '',
current => '<strong><u>{current}</u></strong>',
next => 'Next',
prev => 'Prev',
ellipsis => '..'
2021-12-12 01:50:07 -05:00
},
dev_env => {
pg_string => 'postgresql://user:PASSWORD@example.com/db'
2021-12-11 18:48:00 -05:00
},
prod_env => {
pg_string => 'postgresql://user:PASSWORD@example.com/db'
2021-12-12 01:50:07 -05:00
},
max_posts => 5
2021-12-04 18:36:10 -05:00
}
`secrets` and the Postgres connection string are mandatory
2021-12-12 01:50:07 -05:00
2021-12-04 18:36:10 -05:00
## Testing
2021-12-12 01:50:07 -05:00
$ prove -l
2021-12-04 18:36:10 -05:00
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
2021-12-19 17:56:45 -05:00
2021-12-30 20:52:34 -05:00
## Docker
### Build
docker build -t guestbook-ng .
2022-01-10 13:16:48 -05:00
### Tag
2022-01-10 13:28:43 -05:00
docker tag guestbook-ng \
us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
2022-01-10 13:16:48 -05:00
### Push
2022-01-10 13:28:43 -05:00
docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
2022-01-10 13:16:48 -05:00
2021-12-19 17:56:45 -05:00
## TODOs
2022-01-07 22:46:04 -05:00
1. /spam route would be interesting
2022-01-11 19:51:45 -05:00
1. Visitor counter