Commit Graph

101 Commits

Author SHA1 Message Date
Brian Picciano
0fdece68c0 Add /v2/assets/ handler, with resizing 2022-05-17 13:29:12 -06:00
Brian Picciano
f9d1f664f0 Implement import-asset script 2022-05-17 13:28:56 -06:00
Brian Picciano
4d23325823 Implement cfg.BoolVar method 2022-05-17 11:56:17 -06:00
Brian Picciano
788aba3d0d Fix new index page 2022-05-14 21:35:53 -06:00
Brian Picciano
e24dd6d630 Import posts in dev-shell target 2022-05-14 20:42:43 -06:00
Brian Picciano
e41ff2b897 Implement index handler
This involved re-arranging how templates are being parsed, slightly.
2022-05-14 17:02:30 -06:00
Brian Picciano
4c04177c05 Move template rendering logic into api package 2022-05-14 17:02:16 -06:00
Brian Picciano
dd354bc323 Create srv.dev-shell target in Makefile 2022-05-14 15:22:32 -06:00
Brian Picciano
7e87c09c50 Add /posts handler to api 2022-05-14 15:22:16 -06:00
Brian Picciano
2929b4279c Implement rendering Posts to html 2022-05-14 15:22:10 -06:00
Brian Picciano
a6269d1fe0 Cleanup and fix dev entrypoint target 2022-05-08 16:49:20 -06:00
Brian Picciano
a759fc28f7 Add test target to Makefile to run full integration tests 2022-05-08 16:36:28 -06:00
Brian Picciano
ddb126db17 Move radix config into cfg, use that for integration tests 2022-05-08 16:36:08 -06:00
Brian Picciano
450136a0c0 Implement cachedAssetStore 2022-05-07 18:22:57 -06:00
Brian Picciano
3088c9d76c Implement AssetStore interface 2022-05-07 18:07:27 -06:00
Brian Picciano
cfb633b3b5 Cleanup various small issues with post package 2022-05-07 18:07:13 -06:00
Brian Picciano
07806c6942 Move sql db out of post.NewStore, so it can be shared 2022-05-07 14:56:34 -06:00
Brian Picciano
1495c78656 Move integration tests under a build tag 2022-05-07 14:55:19 -06:00
Brian Picciano
0d016129a4 Implement import-posts script 2022-05-07 14:33:57 -06:00
Brian Picciano
a10a604018 Refactor how data dir is initialized 2022-05-07 13:18:44 -06:00
Brian Picciano
c99b37c5b3 Use unix timestamps for post.Store 2022-05-06 21:49:00 -06:00
Brian Picciano
f7d72adfb5 Implement post.Store 2022-05-06 17:22:21 -06:00
Brian Picciano
d8b12cf17a Begin work on post package 2022-05-05 21:42:46 -06:00
Brian Picciano
eed10ce514 Fix various problems with the srv build 2022-05-05 21:20:22 -06:00
Brian Picciano
cc8b6289ac Improve fatal message for mailinglist.Store creation 2022-05-05 21:05:23 -06:00
Brian Picciano
39ad0e614f Use envvars to configure srv 2022-05-05 20:57:17 -06:00
Brian Picciano
5c247b6f29 Refactor cfg to use envvars as well 2022-05-05 20:30:36 -06:00
Brian Picciano
0277c02767 Get rid of loggerFatalError 2022-05-05 19:33:40 -06:00
Brian Picciano
34f44cb5d5 implementation of basic chat page which can show history and not much else 2021-09-02 17:02:20 -06:00
Brian Picciano
6bebc3fae7 have circus run static serve, and optionally able to skip services via Makefile 2021-08-30 21:38:09 -06:00
Brian Picciano
9343d2ea69 add chat handlers and only allow POST methods 2021-08-30 20:44:45 -06:00
Brian Picciano
15ae483fad add CSRF checking 2021-08-29 22:15:58 -06:00
Brian Picciano
1608ca7425 better logging in srv when fake Mailer is used 2021-08-29 21:34:02 -06:00
Brian Picciano
bf40fa3868 small fixes to srv 2021-08-27 18:03:51 -06:00
Brian Picciano
38fdd7725d premake the dataDir for srv 2021-08-26 21:28:27 -06:00
Brian Picciano
a9d8aa2591 implemented basic userID generation 2021-08-18 18:13:44 -06:00
Brian Picciano
bec64827d1 implement basic chat history endpoint 2021-08-18 17:13:25 -06:00
Brian Picciano
eaccf41563 MVP of chat package 2021-08-17 14:35:07 -06:00
Brian Picciano
ac5275353c implement publish sub-cmd of mailinglist-cli 2021-08-10 13:07:14 -06:00
Brian Picciano
ca27cd6c67 get a basic mailinglist-cli working 2021-08-08 09:07:51 -06:00
Brian Picciano
6feffc568a refactor how nix derivations are organized and built 2021-08-08 08:43:17 -06:00
Brian Picciano
0197d9cd49 split configuration parsing out into separate packages, split api out as well 2021-08-07 20:38:37 -06:00
Brian Picciano
dce39b836a add redis process, put circus in charge of process management 2021-08-06 20:34:18 -06:00
Brian Picciano
47f32e1468 add response headers to prevent caching 2021-08-04 17:13:02 -06:00
Brian Picciano
5ca7dadd02 full deployment via nix 2021-08-03 17:47:01 -06:00
Brian Picciano
8ebf4a26f4 gracefully shutdown on sigint/sigterm 2021-08-03 16:40:33 -06:00
Brian Picciano
9c3ea8dd80 implement finalize and unsubscribe endpoints 2021-08-03 16:28:22 -06:00
Brian Picciano
ec4aac24ab got pow working on the subscribe endpoint 2021-08-03 15:20:32 -06:00
Brian Picciano
20b9213010 add api endpoints for pow and mailinglist, plus some framework improvements 2021-08-02 15:21:12 -06:00
Brian Picciano
069ee93de1 implemented PoW backend 2021-08-01 17:54:53 -06:00
Brian Picciano
6bec0e3964 begin work on mailing list server, got the fundamental components done 2021-07-31 16:52:16 -06:00