Skip to content

kdstarter/blog-eye

Repository files navigation

Blog Eye: A platform for sharing blogs

Build Status Code Climate Coverage Status Stories in Ready Inline docs

For Chinese, you can see wiki: 中文 Wiki

Blog Eye, you know, a platform for sharing blogs. Site url: http://www.blog-eye.com/

Requirements

  • Redis 2.2 +
  • MySQL 5.5 +
  • Ruby 2.1.0 +
  • Rails 4.0.0 +
  • ImageMagick 6.5 +

Install

Make sure mysql already started.

git clone git@github.com:agilejzl/blog-eye.git  

cd blog-eye && ruby setup.rb # Make project RTF  

Then change config at database.yml and settings.yml

RAILS_ENV=development rails s  

bundle exec sidekiq -e development # for async sending email and uploading  

Deploy

cap production deploy  

Gemfile

By default bundler installs gems using the ruby.taobao.org source,
if you'd rather use the official one, set environment variable USE_OFFICIAL_GEM_SOURCE:

USE_OFFICIAL_GEM_SOURCE=1  

Test

We use rspec and capybara to test.

RAILS_ENV=test rake db:setup  

RAILS_ENV=test rails s  

Make sure already installed firefox.

bundle exec rspec -fd  

bundle exec rspec -fd ./spec/features # Run only features test  

Documents

For online doc: http://rubydoc.info/github/agilejzl/blog-eye

yard server --reload # For local, visit http://localhost:8808/  

Contributors

Thanks

License

Copyright © 2014 Blog Eye

Released under the MIT license: