Document post_text.conf

This commit is contained in:
swag 2022-10-01 22:43:40 -04:00
parent d316efb952
commit 33bcb0255b
2 changed files with 27 additions and 4 deletions

View File

@ -4,13 +4,20 @@ A textboard written in Perl
## Installing locally
Install dependencies
Install dependencies:
cpanm --installdeps .
## Running locally
Run it in development mode
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 assets/css/ -w lib/ -w migrations/ -w t/ -w templates/ PostText.pl
@ -18,13 +25,12 @@ Now try requesting http://localhost:3000
## Testing
Run the tests locally (against development environment)
Run the tests locally (against development environment):
prove -l
## TODOs
1. Document post_text.conf (whoopsie)
1. Bump button
1. CSS
1. Configure `perlcritic`

17
example_post_text.conf Normal file
View File

@ -0,0 +1,17 @@
{
threads_per_page => 5,
remarks_per_page => 5,
secrets => ['t0p_s3cr3t'],
tripcode_salt => 't0p_s3cr3t',
development => {
pg_string =>
'postgresql://post_text:t0p_s3cr3t@127.0.0.1/post_text'
},
'TagHelpers-Pagination', {
separator => ' ',
current => '<strong><u>{current}</u></strong>',
next => 'Next',
prev => 'Prev',
ellipsis => '..'
}
}