activitypress/README.md

20 lines
654 B
Markdown
Raw Normal View History

2023-12-25 18:49:16 +00:00
# How to use it
2023-12-26 02:33:18 +00:00
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
2023-12-25 18:49:16 +00:00
## dotenv contents:
```
blog_host=blog.whatever.example.net
blog_title="Your blog title"
port=8080
```