Small markdown blog generator for Fediverse.
Go to file
Moon Man b19074b994 initial commit. 2023-12-25 13:49:16 -05:00
migrations initial commit. 2023-12-25 13:49:16 -05:00
src initial commit. 2023-12-25 13:49:16 -05:00
.eslintrc.cjs initial commit. 2023-12-25 13:49:16 -05:00
.gitignore initial commit. 2023-12-25 13:49:16 -05:00
README.md initial commit. 2023-12-25 13:49:16 -05:00
knexfile.js initial commit. 2023-12-25 13:49:16 -05:00
module.d.ts initial commit. 2023-12-25 13:49:16 -05:00
package-lock.json initial commit. 2023-12-25 13:49:16 -05:00
package.json initial commit. 2023-12-25 13:49:16 -05:00
tsconfig.json initial commit. 2023-12-25 13:49:16 -05:00

README.md

How to use it

  1. create a dotenv .env
  2. Create a directory "pages"
  3. npm install
  4. npx tsc
  5. node dist/command.js new-user nickname "fullname"
  6. create a file pages/whatever-page.md
  7. node dist/command.js new-article nickname whatever-page "Whatever Page Title"
  8. node --env-file=.env dist/index.js
  9. 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