Compare commits

..

10 Commits

Author SHA1 Message Date
Daniel Bowling
ebdc8790e2 Update docs 2023-08-25 12:18:33 -04:00
d31dcf5f1b Update docs 2023-07-26 12:51:57 -04:00
4332a072e0 Update docs 2023-07-26 12:29:18 -04:00
8f424a3a62 Moar docs 2023-04-23 00:30:05 -04:00
5e036384e0 Whoopsie 2022-12-07 00:07:07 -06:00
2fc1375b89 Add verification links 2022-11-20 14:32:48 -05:00
222d3b3271 Close enough... 2022-07-28 19:49:43 -04:00
7dc6ceb581 Revert "Revert "Only need the first few messages for this test""
This reverts commit 3c513e4ad9.
2022-07-26 22:09:36 -04:00
3c513e4ad9 Revert "Only need the first few messages for this test"
This reverts commit f475ec85ca.
2022-07-26 22:09:11 -04:00
f475ec85ca Only need the first few messages for this test 2022-07-26 21:44:12 -04:00
6 changed files with 19 additions and 11 deletions

View File

@ -51,18 +51,28 @@ Add the `-v` option for more verbose output
### Build
docker build -t guestbook-ng .
podman build -t guestbook-ng .
### Tag
docker tag guestbook-ng \
us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
podman tag guestbook-ng git.minimally.online/swaggboi_priv/guestbook-ng
### Push
docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
podman push git.minimally.online/swaggboi_priv/guestbook-ng
### Pull
podman pull git.minimally.online/swaggboi_priv/guestbook-ng
### Run
podman run -dt --rm --name guestbook-ng -p 3001:3000 guestbook-ng:latest
### Generate unit file
podman generate systemd --files --new --name guestbook-ng
## TODOs
1. Do something about the hardcoded URL in Webhook stuff
1. Implement try/catch for Webhook since we're using Perl 5.36

View File

@ -1,5 +1,3 @@
#!/usr/bin/env perl
package GuestbookNg::Model::Counter;
use Mojo::Base -base, -signatures;

View File

@ -1,5 +1,3 @@
#!/usr/bin/env perl
package GuestbookNg::Model::Message;
use Mojo::Base -base, -signatures;

View File

@ -12,10 +12,10 @@ my $t = Test::Mojo->new($script);
$t->ua->max_redirects(0);
# This one is not spam
$t->get_ok('/message/8')->status_is(200)
$t->get_ok('/message/3')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# This one _is_ spam
$t->get_ok('/message/19')->status_is(200)
$t->get_ok('/message/2')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# This one is deleted
$t->get_ok('/message/1')->status_is(404)

View File

@ -28,6 +28,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="manifest" href="/site.webmanifest">
<link rel="me" href="https://eattherich.club/@swaggboi">
</head>
<body>
<div class="outer">

View File

@ -30,6 +30,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="manifest" href="/site.webmanifest">
<link rel="me" href="https://eattherich.club/@swaggboi">
</head>
<body>
<div class="outer">