📝 posts of pon tech blog
This repository manages my texh blog post.
- generates Markdown file.
- creates tech blog contents.
- stores post's media to datastore (Now supports only S3)
⭐ All posts is here.
https://github.com/po3rin/post/blob/master/CONTENTS.md
🚩 Contributing
Did you find something technically wrong, something to fix, or something? Please give me Issue or Pull Request !!
📐 Usage
this repository provides postctl
cli
go get -u github.com/po3rin/post/cmd/postctl
Write new post
creates new Markdown file for blog.
$ postctl new < id >
Manage media
postctl media subcommand uploads media to S3 and replace S3 object url from loacl retrive path to media.
$ postctl media -b < bucket name> < image file path>
----------------------
img/test.jpeg
↓
https://pon-blog-media.s3.ap-northeast-1.amazonaws.com/media/test.jpeg
----------------------
Sync contents table
sync contens table of post
$ postctl contents -p "https://github.com/po3rin/post/tree/master"
Sync Posts with External Database
sync all posts
$ postctl sync -u http://localhost:8081/post -a
specify id
$ postctl sync -u http://localhost:8081/post filepath
Sync Post with Es
you can sync posts with elasticsearch directry.
go run ./cmd/postctl essync -u <user> -p <pass> -e <endpoint>