Small markdown blog generator for Fediverse.
Go to file
Moon Man f205c0db0b rm article func aliases 2024-01-01 08:25:27 -05:00
migrations actor type on user, lookup table 2024-01-01 07:52:40 -05:00
src rm article func aliases 2024-01-01 08:25:27 -05:00
.eslintrc.cjs initial commit. 2023-12-25 13:49:16 -05:00
.gitignore tons of changes. 2023-12-25 21:33:18 -05:00
README.md tons of changes. 2023-12-25 21:33:18 -05:00
knexfile.js initial commit. 2023-12-25 13:49:16 -05:00
module.d.ts rm redundant work 2023-12-31 07:31:58 -05:00
package-lock.json bodyparser 2023-12-27 15:54:35 +00:00
package.json bodyparser 2023-12-27 15:54:35 +00:00
tsconfig.json initial commit. 2023-12-25 13:49:16 -05:00

README.md

How to use it

  1. openssl req -x509 -newkey rsa:2048 -keyout private.pem -out public.pem -sha256 -days 9999 -nodes -subj "/CN=blog.whatever.example.net"
  2. create a dotenv .env
  3. Create a directory "pages"
  4. npm install
  5. npx tsc
  6. node dist/command.js new-user nickname "fullname"
  7. create a file pages/whatever-page.md
  8. node dist/command.js new-article nickname whatever-page "Whatever Page Title"
  9. node --env-file=.env dist/index.js
  10. curl --verbose -H 'Accept: application/activity+json' http://127.0.0.1:8080/author/nickname/outbox

dotenv contents:

blog_host=blog.whatever.example.net
blog_title="Your blog title"
port=8080