515 B
515 B
How to use it
- create a dotenv .env
- Create a directory "pages"
- npm install
- npx tsc
- node dist/command.js new-user nickname "fullname"
- create a file pages/whatever-page.md
- node dist/command.js new-article nickname whatever-page "Whatever Page Title"
- node --env-file=.env dist/index.js
- 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