wblog/README.md

137 lines
4.1 KiB
Markdown
Raw Normal View History

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)
2014-07-17 21:02:40 +08:00
[![Code Climate](https://codeclimate.com/github/windy/wblog.png)](https://codeclimate.com/github/windy/wblog)
2014-07-17 21:04:53 +08:00
[![Test Coverage](https://codeclimate.com/github/windy/wblog/coverage.png)](https://codeclimate.com/github/windy/wblog)
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
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:04:22 +08:00
![screenshot home](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home.png)
![screenshot home small](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home-small.png)
![screenshot home hover](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/home-small-hover.png)
![screenshot post](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/post.png)
![screenshot post hover](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/post-hover.png)
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-login.png)
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-dashboard.png)
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-post.png)
![screenshot admin](https://github.com/windy/wblog/raw/master/doc/wblog_s_en/admin-posts.png)
2014-04-02 16:46:20 +08:00
2016-03-05 16:40:08 +08:00
### System dependencies
2016-04-28 17:04:22 +08:00
* Ruby ( = 2.2.3 )
* 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
# 2.2.3
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
WBlog uses `mina` as automation deployment tool, uses `unicorn` as the Rack container.
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
2016-04-28 17:04:22 +08:00
* Ruby on Rails 5.0.0.beta3
* Ruby 2.2.3
* Turbolinks / SJR
* Foundation 6
2014-04-02 16:46:20 +08:00
* mina
* slim
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/>
* 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>
* robbin_site( Padrino ): <https://github.com/robbin/robbin_site>
2016-04-28 17:04:22 +08:00
## License
MIT.