19 lines
515 B
Markdown
19 lines
515 B
Markdown
|
# How to use it
|
||
|
|
||
|
0. create a dotenv .env
|
||
|
1. Create a directory "pages"
|
||
|
2. npm install
|
||
|
3. npx tsc
|
||
|
4. node dist/command.js new-user nickname "fullname"
|
||
|
5. create a file pages/whatever-page.md
|
||
|
6. node dist/command.js new-article nickname whatever-page "Whatever Page Title"
|
||
|
7. node --env-file=.env dist/index.js
|
||
|
8. 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
|
||
|
```
|