Go to file
yafeilee 78c4f0efd9 fix depreciation message 2018-05-19 17:07:08 +08:00
app update text 2018-01-29 00:16:01 +08:00
bin upgrade from 5.1 to 5.2 2018-05-19 15:11:27 +08:00
config upgrade from 5.1 to 5.2 2018-05-19 15:11:27 +08:00
db Fix test cases 2016-04-25 12:27:32 +08:00
doc Update README & Add wblog screenshots 2016-04-28 17:04:22 +08:00
lib upgrade to rails5.1 2017-04-30 19:48:31 +08:00
log Fixed deprecated info 2016-03-08 23:26:55 +08:00
public update favicon 2015-09-11 19:52:52 +08:00
script Fixed deprecated info 2016-03-08 23:26:55 +08:00
spec fix depreciation message 2018-05-19 17:07:08 +08:00
vendor fix xss 2018-03-23 14:18:45 +08:00
.ackrc fix repeat click like button when page refreshing 2015-04-05 09:10:10 +08:00
.gitignore Update ruby version to 2.3.1 2016-07-29 01:11:29 +08:00
.rspec Fixed rspec warning info, refactor spec 2016-08-07 00:52:35 +08:00
.travis.yml Change travis.yml to ruby 2.3.1 2016-07-28 14:26:13 +02:00
Gemfile fix depreciation message 2018-05-19 17:07:08 +08:00
Gemfile.lock fix depreciation message 2018-05-19 17:07:08 +08:00
Guardfile Guardfile for rails 2016-03-08 23:28:27 +08:00
LICENSE Update README & Add wblog screenshots 2016-04-28 17:04:22 +08:00
README.md drop unicorn and use puma 2017-05-23 11:06:02 +08:00
README.zh-CN.md Fixed rspec warning info, refactor spec 2016-08-07 00:52:35 +08:00
Rakefile Fixed deprecated info 2016-03-08 23:26:55 +08:00
config.ru Fixed deprecated info 2016-03-08 23:26:55 +08:00

README.md

WBlog

Build Status Code Climate Test Coverage

The missing open source blog system on Ruby on Rails.

WBlog is open source blog which built for mobile first, it's licenced on MIT, use it for free!

中文说明文档

Characteristic:

  • 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

A demo came from my English blog: http://en.yafeilee.me

Another demo using my blog: http://yafeilee.me

Power Admin Dashboard: http://en.yafeilee.me/admin, user and password are configurable.

Some screenshots

System dependencies

  • Ruby ( = 2.3.1 )
  • Postgresql ( >= 9.x )
  • Nginx ( >= 1.4 )

Features

  • Responsive, iPhone, iPad, Notebook, PC, all are supported
  • QR Code, Like button make your article easily sharing with your friends
  • Inpendent comment system, subscribe system, that all belong to you
  • Markdown supported, code highlight, especially for programmer, like you
  • Personalize it, commercialize it, it all depends on you

Goal

Make it to the best Ruby on Rails Blog system in the world.

Running in development mode

WBlog MUST run in Linux or OSX. I assume you are using OS X 10.

You can run it like a Ruby on Rails project as usual:

  1. Check dependencies
ruby -v
# 2.3.1
postgres  --version
# 9.x.x
  1. Clone it

git clone git@github.com:windy/wblog.git

cd wblog

  1. Install dependencies & configure
gem install bundler
bundle install
cp config/application.yml.example config/application.yml
cp config/database.yml.example config/database.yml

Update application.yml & database.yml 's content as you need

  1. Start it
rails s

Open browser with http://localhost:3000

If there is any error found, please check your database's user and password.

  1. Post the first blog

visit: http://localhost:3000/admin, input your username and password configurated in application.yml. then, post a new article.

OK, That's all.

Deployment

WBlog uses mina as automation deployment tool, uses puma as the Rack container.

WBlog recommends nginx as reverse proxy server.

It will be very fast.

Ruby on Rails project deployment is another topic, I would NOT talk it here.

You can read WBlog wiki for more information: WBlog 的发布流程(Chinese only now)

Stack

  • Ruby on Rails 5.0.0
  • Ruby 2.3.1
  • Turbolinks / SJR
  • Foundation 6
  • mina
  • slim
  • puma
  • Postgresql

License

MIT.

Screenshots

Home Page:

screenshot home

Home Page for mobile:

screenshot home small

Home Page Hover Status for mobile:

screenshot home hover

Blog Show Page:

screenshot post

Blog Show Page Hover Status:

screenshot post hover

Admin Login Page:

screenshot admin

Admin Dashboard Page:

screenshot admin

Admin New Blog Page:

screenshot admin

Admin Blogs Manage Page:

screenshot admin