{"id":17599097,"url":"https://github.com/jinhucheung/milog","last_synced_at":"2025-04-14T23:26:52.618Z","repository":{"id":11573732,"uuid":"70055967","full_name":"jinhucheung/milog","owner":"jinhucheung","description":"Milog 是一基于 Ruby on Rails 的个人博客网站","archived":false,"fork":false,"pushed_at":"2025-03-21T20:04:29.000Z","size":20169,"stargazers_count":28,"open_issues_count":3,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T11:21:48.387Z","etag":null,"topics":["bootstrap","elasticsearch","rails","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/jinhucheung/milog","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinhucheung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-05T11:56:40.000Z","updated_at":"2024-09-23T03:30:46.000Z","dependencies_parsed_at":"2025-01-16T03:38:17.962Z","dependency_job_id":null,"html_url":"https://github.com/jinhucheung/milog","commit_stats":{"total_commits":177,"total_committers":2,"mean_commits":88.5,"dds":0.05649717514124297,"last_synced_commit":"5bf5a97fbcdf79b4e8788ae4ad71e7325cff17c3"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhucheung%2Fmilog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhucheung%2Fmilog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhucheung%2Fmilog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhucheung%2Fmilog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinhucheung","download_url":"https://codeload.github.com/jinhucheung/milog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248976912,"owners_count":21192487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","elasticsearch","rails","ruby"],"created_at":"2024-10-22T10:09:12.926Z","updated_at":"2025-04-14T23:26:52.598Z","avatar_url":"https://github.com/jinhucheung.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Milog\n\n一基于 [Ruby on Rails](https://github.com/rails/rails) 的个人博客网站 https://milog-demo.herokuapp.com/\n\n游客账号: Email aguest@milog.com | Password 123456\n\n静态页面: https://github.com/jinhucheung/milog/tree/static_pages\n\n## 特点\n\n+ 支持 [Bootstrap](http://getbootstrap.com/), 实现响应式设计\n\n+ 使用 [Markdown](https://zh.wikipedia.org/zh-hans/Markdown) 作为编辑文本格式, 主要由 [Markdown-it](https://github.com/markdown-it/markdown-it) 在客户端进行解析渲染, [motion-markdown-it](https://github.com/digitalmoksha/motion-markdown-it) 负责后端解析\n\n+ Markdown 支持 [Emoji](https://github.com/afeld/emoji-css)\n\n+ 实现 Markdown 工具栏\n\n+ 使用 [bcrypt](https://github.com/codahale/bcrypt-ruby) 加密用户重要资料\n\n+ 可暂存用户编辑中的文本\n\n+ [Elasticsearch](https://github.com/elastic/elasticsearch) 作为全文搜索引擎, 可根据关键字搜索文章\n\n+ 支持上传图片, 使用[七牛](http://www.qiniu.com/)存储\n\n## 更新\n\n### 2016/12/20\n\n+ 增加社区模块\n\n+ 修改用户主页, 增加用户关注功能\n\n+ 增加消息通知系统\n\n### 2017/1/30\n\n+ 使用 [Letter Avatar](https://github.com/ksz2k/letter_avatar), 代替原本的用户默认头像模块\n\n+ 使用 [Rails Settings Cached](https://github.com/huacnlee/rails-settings-cached) 保存系统设置\n\n### 2017/3/14\n\n+ 实现 Milog Android 客户端 [Milog-Android](https://github.com/HiKumho/milog-android)\n\n+ 修复文章中图片尺寸过大, 溢出页面\n\n### 2017/5/7\n\n+ 将原先的 `afeld.github.io/emoji-css` 文件导入本地\n\n+ 修复客户端用户未登录访问消息通知 404\n\n### 2017/5/15\n\n+ 后台添加用户后发送密码激活邮件至用户邮箱\n\n+ 修复测试用例\n\n## Thanks\n\n+ [Ruby on Rails](http://rubyonrails.org/)\n\n+ [Ruby China](https://ruby-china.org/)\n\n+ [Hexo-theme-next](https://github.com/iissnan/hexo-theme-next)\n\n+ [Bootstrap](http://getbootstrap.com/)\n\n+ [Markdown-it](https://github.com/markdown-it/markdown-it)\n\n+ [Elasticsearch](https://github.com/elastic/elasticsearch)\n\n## 部署\n\n### 环境\n```\nUbuntu 14.04 / Git / Ruby 2.3.1 / Rails 5.0.0 / MariaDB 5.5.52\n```\n\n### 下载\n```\ngit clone git@github.com:Hikumho/milog.git\n```\n\n### 数据库\n\n安装 [MariaDB](https://mariadb.org/)\n\n```sh\nsudo apt-get install software-properties-common\nsudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db\nsudo add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main'\n\nsudo apt-get update\nsudo apt-get install mariadb-server\n```\n\n### 项目配置\n\n1. 更新配置文件\n\n```\ncp config/local_env.yml.example config/local_env.yml\ncp config/email.yml.example config/email.yml\n```\n\n修改 `config/local_env.yml` 中的 `MYSQL` 信息\n\n2. 安装 Gem\n\n```\nbundle install\n```\n\n其他问题可见 [#FQA](#FQA)\n\n3. 迁移数据\n\n```\nrails db:create\n\nrails db:migrate\n\nrails db:seed\n```\n\n至此, 项目可在开发环境中运行\n\n以下进行生产环境的部署\n\n1. 生成 App 密钥\n\n```\nrequire 'securerandom'\n\nSecureRandom.hex(64)\n```\n并将密钥写入 `config/secrets.yml` 的 `production` 节点\n\n\n2. 部署七牛云\n\n修改 `config/local_env.yml` 中的 `QINIU` 信息\n\n具体配置请看 [carrierwave-qiniu](https://github.com/huobazi/carrierwave-qiniu)\n\n3. 部署邮件\n\n修改 `config/email.yml`\n\n### FQA\n\n1. Imagemagick\n\n本地可能由于没有安装 [Imagemagick](https://github.com/ImageMagick/ImageMagick) 导致 `bundle install` 出错\n\n安装 Imagemagick: `sudo apt-get install imagemagick`\n\n2. Elasticsearch\n\n安装 Elasticsearch: [教程](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-on-an-ubuntu-vps)\n\n配置 Elasticsearch: `bundle exec rake environment elasticsearch:import:model CLASS='Article' SCOPE='posted'`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinhucheung%2Fmilog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinhucheung%2Fmilog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinhucheung%2Fmilog/lists"}