wblog/README.md

113 lines
3.2 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
2015-04-12 03:01:27 +08:00
* Awful reading feeling for reader
2016-03-05 22:12:03 +08:00
* Independent comment system, store data on your own sever
* With mardown supported, you can post both powerful and clean formatted article(s)
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>
Power Admin Dashboard: <http://en.yafeilee.me/admin>, user and password are configurable.
2014-04-07 08:34:32 +08:00
2015-04-12 03:01:27 +08:00
![screenshot](https://github.com/windy/wblog/raw/master/doc/wblog.gif)
2014-04-02 16:46:20 +08:00
2016-03-05 16:40:08 +08:00
### System dependencies
* Ruby ( >= 2.0 )
* Mongodb ( >= 2.7 )
* 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
* QR Code attached article, scan and share it
* Inpendent comment system, managed by yourself
* 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
2015-04-12 03:01:27 +08:00
### Study it locally
2014-04-02 16:46:20 +08:00
2015-04-12 23:57:11 +08:00
WBlog MUST run in Linux or Mac, it depends on Mongodb database. You can run it like a Ruby on Rails project as usual:
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`
2016-03-05 22:12:03 +08:00
2015-04-12 23:31:31 +08:00
`cd wblog `
2014-04-02 17:30:13 +08:00
2015-04-12 03:01:27 +08:00
2. Install dependencies & configure
2015-04-12 23:57:11 +08:00
2015-04-27 22:10:34 +08:00
```shell
# Install mongodb ( see how to install it on your platform )
# on Mac, you can install it like this:
brew install mongodb
```
2015-04-12 23:31:31 +08:00
```shell
bundle install
cp config/application.yml.example config/application.yml
2015-04-27 22:10:34 +08:00
cp config/mongoid.yml.example config/mongoid.yml
2015-04-12 23:31:31 +08:00
```
2014-04-02 17:30:13 +08:00
2015-04-27 22:10:34 +08:00
Update application.yml & mongoid.yml 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
2015-04-12 23:57:11 +08:00
If there is any error found, please check your database's user and password.
4. Post the first article
visit: http://127.0.0.1:3000/admin, input your username and password that is just configurated in application.yml.
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
2015-04-12 03:01:27 +08:00
Ruby on Rails project deployment is another big 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-03-05 22:12:03 +08:00
* Ruby on Rails 4.2.x / Ruby 2.x
2014-04-02 16:46:20 +08:00
* AngularJS
2014-04-06 00:11:49 +08:00
* Foundation 5
2014-04-02 16:46:20 +08:00
* mina
* slim
* Mongodb
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>