2014-04-02 16:46:20 +08:00
|
|
|
WBlog
|
2012-06-23 06:19:03 +08:00
|
|
|
=======
|
2014-07-17 21:00:21 +08:00
|
|
|
[![Build Status](https://travis-ci.org/windy/wblog.svg?branch=master)](https://travis-ci.org/windy/wblog)
|
2018-05-19 17:41:39 +08:00
|
|
|
[![Maintainability](https://api.codeclimate.com/v1/badges/545d8372a9dda70b77fe/maintainability)](https://codeclimate.com/github/windy/wblog/maintainability)
|
|
|
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/545d8372a9dda70b77fe/test_coverage)](https://codeclimate.com/github/windy/wblog/test_coverage)
|
2012-06-28 07:41:43 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
The missing open source blog system on Ruby on Rails.
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
WBlog is open source blog which built for mobile first, it's licenced on MIT, use it for free!
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2018-05-19 17:41:39 +08:00
|
|
|
New: WBlog is using Ruby on Rails 5.2 now.
|
|
|
|
|
2015-04-12 03:08:58 +08:00
|
|
|
[中文说明文档](/README.zh-CN.md)
|
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
Characteristic:
|
2014-04-06 16:29:57 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
* Modern clean reading feelings
|
|
|
|
* Markdown support, give nice formatted articles
|
|
|
|
* Mobile first, responsive page for iPhone, iPad, iMac.
|
|
|
|
* Independent comment system, subscribe system, picture manage system
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
A demo came from my English blog: <http://en.yafeilee.me>
|
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
Another demo using my blog: <http://yafeilee.me>
|
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
Power Admin Dashboard: <http://en.yafeilee.me/admin>, user and password are configurable.
|
2014-04-07 08:34:32 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Some [screenshots](#screenshots)
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2016-03-05 16:40:08 +08:00
|
|
|
### System dependencies
|
|
|
|
|
2016-08-06 23:18:34 +08:00
|
|
|
* Ruby ( = 2.3.1 )
|
2016-04-28 17:04:22 +08:00
|
|
|
* Postgresql ( >= 9.x )
|
2016-03-05 16:40:08 +08:00
|
|
|
* Nginx ( >= 1.4 )
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
### Features
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
* Responsive, iPhone, iPad, Notebook, PC, all are supported
|
2016-04-28 17:04:22 +08:00
|
|
|
* QR Code, Like button make your article easily sharing with your friends
|
|
|
|
* Inpendent comment system, subscribe system, that all belong to you
|
2015-04-12 03:01:27 +08:00
|
|
|
* Markdown supported, code highlight, especially for programmer, like you
|
2015-04-12 23:57:11 +08:00
|
|
|
* Personalize it, commercialize it, it all depends on you
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
### Goal
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 23:57:11 +08:00
|
|
|
Make it to the best Ruby on Rails Blog system in the world.
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
### Running in development mode
|
|
|
|
|
|
|
|
WBlog MUST run in Linux or OSX. I assume you are using OS X 10.
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
You can run it like a Ruby on Rails project as usual:
|
|
|
|
|
|
|
|
0. Check dependencies
|
|
|
|
|
|
|
|
```shell
|
|
|
|
ruby -v
|
2016-08-07 00:44:11 +08:00
|
|
|
# 2.3.1
|
2016-04-28 17:04:22 +08:00
|
|
|
postgres --version
|
|
|
|
# 9.x.x
|
|
|
|
```
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
1. Clone it
|
2014-04-02 17:30:13 +08:00
|
|
|
|
2015-04-12 23:31:31 +08:00
|
|
|
`git clone git@github.com:windy/wblog.git`
|
2014-04-02 17:30:13 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
`cd wblog`
|
2015-04-12 23:57:11 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
2. Install dependencies & configure
|
2015-04-27 22:10:34 +08:00
|
|
|
|
2015-04-12 23:31:31 +08:00
|
|
|
```shell
|
2016-04-28 17:04:22 +08:00
|
|
|
gem install bundler
|
2015-04-12 23:31:31 +08:00
|
|
|
bundle install
|
|
|
|
cp config/application.yml.example config/application.yml
|
2016-04-28 17:04:22 +08:00
|
|
|
cp config/database.yml.example config/database.yml
|
2015-04-12 23:31:31 +08:00
|
|
|
```
|
2014-04-02 17:30:13 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
Update `application.yml` & `database.yml` 's content as you need
|
2015-04-12 03:01:27 +08:00
|
|
|
|
|
|
|
3. Start it
|
2015-04-12 23:57:11 +08:00
|
|
|
|
2015-04-12 23:31:31 +08:00
|
|
|
```shell
|
|
|
|
rails s
|
|
|
|
```
|
2015-04-12 03:01:27 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
Open browser with `http://localhost:3000`
|
|
|
|
|
2015-04-12 23:57:11 +08:00
|
|
|
If there is any error found, please check your database's user and password.
|
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
4. Post the first blog
|
2015-04-12 23:57:11 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
visit: http://localhost:3000/admin, input your username and password configurated in `application.yml`.
|
2015-04-12 23:57:11 +08:00
|
|
|
then, post a new article.
|
2015-04-12 03:01:27 +08:00
|
|
|
|
2014-04-02 17:30:13 +08:00
|
|
|
OK, That's all.
|
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
### Deployment
|
|
|
|
|
2017-05-23 11:06:02 +08:00
|
|
|
WBlog uses `mina` as automation deployment tool, uses `puma` as the Rack container.
|
2015-04-12 03:01:27 +08:00
|
|
|
|
2015-04-12 23:31:31 +08:00
|
|
|
WBlog recommends `nginx` as reverse proxy server.
|
2015-04-12 03:01:27 +08:00
|
|
|
|
|
|
|
It will be very fast.
|
2015-01-31 18:59:21 +08:00
|
|
|
|
2016-04-28 17:04:22 +08:00
|
|
|
Ruby on Rails project deployment is another topic, I would NOT talk it here.
|
2015-01-31 18:59:21 +08:00
|
|
|
|
2016-03-05 22:12:03 +08:00
|
|
|
You can read WBlog wiki for more information: [WBlog 的发布流程(Chinese only now)](https://github.com/windy/wblog/wiki)
|
2015-01-31 18:59:21 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
### Stack
|
2014-04-02 16:46:20 +08:00
|
|
|
|
2018-05-19 17:41:39 +08:00
|
|
|
* Ruby on Rails 5.2.0
|
2016-08-07 00:44:11 +08:00
|
|
|
* Ruby 2.3.1
|
2018-05-19 17:41:39 +08:00
|
|
|
* Turbolinks 5 / SJR
|
2016-04-28 17:04:22 +08:00
|
|
|
* Foundation 6
|
2014-04-02 16:46:20 +08:00
|
|
|
* mina
|
|
|
|
* slim
|
2017-05-23 11:06:02 +08:00
|
|
|
* puma
|
2016-04-28 17:04:22 +08:00
|
|
|
* Postgresql
|
2014-04-02 16:46:20 +08:00
|
|
|
|
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
## Related open source blog systems
|
2014-04-06 16:29:57 +08:00
|
|
|
|
2015-04-12 03:01:27 +08:00
|
|
|
* writings.io( Ruby on Rails 4.0.2 ): a multi users blog system <https://github.com/chloerei/writings>
|
|
|
|
* jekyll( Ruby Gem, Markdown): Static blog system <http://jekyllrb.com/>
|
2014-11-25 01:15:29 +08:00
|
|
|
* octopress( Github Pages ): <http://octopress.org/>
|
2015-04-12 03:01:27 +08:00
|
|
|
* middleman( Ruby Gem ): Another static blog system <https://github.com/middleman/middleman>
|
2014-11-25 01:15:29 +08:00
|
|
|
* robbin_site( Padrino ): <https://github.com/robbin/robbin_site>
|
2016-04-28 17:04:22 +08:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT.
|
2016-04-28 17:14:38 +08:00
|
|
|
|
|
|
|
### Screenshots
|
|
|
|
|
|
|
|
Home Page:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot home](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home.png)
|
|
|
|
|
|
|
|
Home Page for mobile:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot home small](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home-small.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Home Page Hover Status for mobile:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot home hover](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home-small-hover.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Blog Show Page:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot post](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/post.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Blog Show Page Hover Status:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot post hover](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/post-hover.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Admin Login Page:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-login.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Admin Dashboard Page:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-dashboard.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Admin New Blog Page:
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-post.png)
|
2016-04-28 17:20:38 +08:00
|
|
|
|
2016-04-28 17:14:38 +08:00
|
|
|
Admin Blogs Manage Page:
|
|
|
|
|
2016-04-28 17:20:38 +08:00
|
|
|
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-posts.png)
|