A textboard written in Perl https://posttext.pl
  • Perl 90.5%
  • CSS 8.3%
  • JavaScript 0.7%
  • Dockerfile 0.5%
Find a file
2025-05-02 14:51:14 -04:00
lib New Markdown behavior for RSS feeds 2025-05-02 14:51:14 -04:00
migrations Get rid of this whitespace 2025-04-12 20:16:46 -04:00
public Tweak CSS class some more; add plain-text to by_page 2025-04-11 23:05:30 -04:00
script Use v5.40 (finally) 2024-08-15 21:55:45 -04:00
t TODONE + new TODO 2025-04-12 12:28:19 -04:00
templates Do the admin/mod templates 2025-04-12 12:15:35 -04:00
.gitignore Hybrid time 2022-09-15 19:14:40 -04:00
.perlcriticrc Dial up severity for PerlCritic, also comment out in cpanfile as it's not necessary right now for a container build 2023-05-06 03:02:11 -04:00
AUTHORS Put some files in place for later; implement a basic Mojolicious::Lite app 2022-07-22 18:37:31 -04:00
cpanfile Version pin Slapbird agent 2025-04-13 21:07:55 -04:00
Dockerfile Don't need to run tests in build anymore 2025-02-11 16:13:15 -05:00
example_post_text.conf Fix example conf things 2025-04-12 13:27:24 -04:00
LICENSE New license 2023-08-14 19:40:38 -05:00
README.md Add Slapbird stuff back in 2025-04-12 12:36:26 -04:00

Post::Text

A textboard written in Perl

Installing locally

Install dependencies:

cpanm --installdeps .

Running locally

Create a config file:

cp example_post_text.conf post_text.conf

This file right now just contains a Perl hash reference. Someday it should be YAML or XML or something better suited.

Run it in development mode:

morbo -w public/ -w lib/ -w templates/ -w script/ script/post_text

Now try requesting http://localhost:3000

Testing

First, create a valid first thread and first remark to the first thread. The tests rely on the existence of thread #1 and remark #1 being the first remark to that first thread. Then you can run the tests locally:

prove -l

Building/running container

Build

podman build -t post_text .

Tag

podman tag post_text \
    git.seriousbusiness.international/swaggboi_priv/post_text

Push

podman push git.seriousbusiness.international/swaggboi_priv/post_text

Pull

podman pull git.seriousbusiness.international/swaggboi_priv/post_text

Run

podman run -dt --rm --name post_text -p 3002:3000 post_text

Generate unit file

podman generate systemd --files --new --name post_text

TODOs

  • Do I need SUM for by_id()?

AGPL-3.0+ANTIFA compliance

  • Antifa
  • Trans Rights
  • Black Lives Matter