All Projects → songquanpeng → microblog

songquanpeng / microblog

Licence: MIT license
基于 Go 的个人微博客,一个供你闲言碎语的地方. Go based microblog system.

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Labels

Projects that are alternatives of or similar to microblog

microstat
A self-hosted Micropub endpoint for statically-generated microblogs. 📝⚡️
Stars: ✭ 52 (+147.62%)
Mutual labels:  microblog
cherrypick
🌎 A interplanetary communication platform 🚀
Stars: ✭ 40 (+90.48%)
Mutual labels:  microblog
Misskey
🌎 An interplanetary microblogging platform 🚀
Stars: ✭ 2,244 (+10585.71%)
Mutual labels:  microblog
Twtxt
Decentralised, minimalist microblogging service for hackers.
Stars: ✭ 1,632 (+7671.43%)
Mutual labels:  microblog
Mastodon
Your self-hosted, globally interconnected microblogging community
Stars: ✭ 26,120 (+124280.95%)
Mutual labels:  microblog
microblog
A very simple PHP app that stores twitter-like status updates in a sqlite database.
Stars: ✭ 30 (+42.86%)
Mutual labels:  microblog
MicroBlog
新浪微博舆情热点分析
Stars: ✭ 18 (-14.29%)
Mutual labels:  microblog
transformative
IndieWeb personal website software.
Stars: ✭ 47 (+123.81%)
Mutual labels:  microblog
mangosta-android
MongooseIM client for Android
Stars: ✭ 31 (+47.62%)
Mutual labels:  microblog
Disboard
Collection of fediverse client libraries
Stars: ✭ 13 (-38.1%)
Mutual labels:  microblog
misskey
🌎 An interplanetary microblogging platform 🚀
Stars: ✭ 2,895 (+13685.71%)
Mutual labels:  microblog
mastodon
Your self-hosted, globally interconnected microblogging community
Stars: ✭ 29,949 (+142514.29%)
Mutual labels:  microblog
orbit
A MetaWeblog API Server for Hugo
Stars: ✭ 25 (+19.05%)
Mutual labels:  microblog
internet-weblog
internet weblog theme for Hugo
Stars: ✭ 33 (+57.14%)
Mutual labels:  microblog
mastodo
A fork of the GNU Social/AP-compatible microblogging server
Stars: ✭ 29 (+38.1%)
Mutual labels:  microblog
nanoblog
Open source microblog with buffering and Twitter crossposting
Stars: ✭ 23 (+9.52%)
Mutual labels:  microblog

微博客

基于 Go 的个人微博客,一个供你闲言碎语的地方

部署教程

基于 Docker 进行部署

执行:docker run -d --restart always -p 3000:3000 -e MB_USERNAME=admin -e MB_PASSWORD=123456 -e TZ=Asia/Shanghai -v /home/ubuntu/data/microblog:/data justsong/microblog

设置 SESSION_SECRET 环境变量后将固定 Session Secret,这样应用重启后 Cookie 也不会失效。

数据将会保存在宿主机的 /home/ubuntu/data/microblog 目录,默认用户名为 admin,密码为 123456

手动部署

  1. GitHub Releases 下载可执行文件或者从源码编译:
    git clone https://github.com/songquanpeng/microblog.git
    go mod download
    go build -ldflags "-s -w" -o microblog
  2. 运行:
    chmod u+x microblog
    ./microblog --port 3000 --username admin --password 123456
  3. 访问 http://localhost:3000/ 即可开始使用,默认用户名为 admin,密码为 123456

其中 port 即服务的端口号,usernamepassword 即用于身份验证的用户名和密码。

可以使用 pm2 来进行进程守护:pm2 start ./microblog --name microblog -- --port 3000 --username admin --password 123456

更加详细的部署教程参见此处

主题设置

你可以通过设置 theme 命令行参数或者 MB_THEME 环境变量来切换主题。

目前可用的内置主题有 default & chiperman

如果要使用第三方主题,只需要设置 theme 命令行参数或者 MB_THEME 环境变量为主题的路径即可。

例如:./microblog --theme ./path/to/theme

如果想要自行开发主题,请参考 theme/default,你可以自行复制一份,然后修改 index.html 以及 app.css 即可。

欢迎提交 PR 将你的自定义主题 merge 到本项目(以 submodule 的形式)。

使用教程

点击右下角的加号按钮可以发布微博,在输入框中输入 delete id 可以删除指定 id 的微博,微博的 id 可以在对应卡片的右下角找到。

例如删除 id 为 34 的微博:delete 34

如果用户未登录,则会首先弹出登录框,用户名和密码是你在环境变量或者命令行参数中设置的值。

支持 Markdown。

由于微博客本身简洁的设计,你可以将其使用 iframe 嵌入到你的主博客里面,例如:https://iamazing.cn/page/nonsense

在线示例

我自己的部署版本:https://nonsense.justsong.cn

其他

  1. 创意参考:https://github.com/daibor/nonsense.fun
  2. v0.1 版本升级 v0.2 版本请使用此数据库迁移脚本
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].