Moon Man c3d57ccbe8 | ||
---|---|---|
migrations | ||
src | ||
.eslintrc.cjs | ||
.gitignore | ||
README.md | ||
knexfile.js | ||
module.d.ts | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
How to use it
- openssl req -x509 -newkey rsa:2048 -keyout private.pem -out public.pem -sha256 -days 9999 -nodes -subj "/CN=blog.whatever.example.net"
- 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