bernardlai / ruby-china

:circus_tent: Ruby China website source code.

Home Page:https://ruby-china.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby China

This is the source code of Ruby China website.

Build Status Code Climate codecov.io

Requirements

  • Ruby 2.3.0 +
  • PostgreSQL 9.4 +
  • Redis 2.8 +
  • Memcached 1.4 +
  • ImageMagick 6.5 +
  • Elasticsearch 2.0 +

Install in development

Vagrant

Install VirtualBox + Vagrant, and then:

$ vagrant up
$ vagrant ssh
$ cd /vagrant
/vagrant $ ./bin/setup
/vagrant $ rails s -b 0.0.0.0

Open http://localhost:3000 in host.

Mac OS X, use Homebrew

$ brew install memcached redis postgresql imagemagick gs elasticsearch

Ubuntu

$ sudo apt-get install memcached postgresql-9.4 redis-server imagemagick ghostscript

Install Elasticsearch

curl -sSL https://git.io/vVHhm | bash
$ git clone https://github.com/ruby-china/ruby-china.git
$ cd ruby-china
$ ./bin/setup
Checking Package Dependencies...
--------------------------------------------------------------------------------
Redis 2.0+                                                                 [Yes]
Memcached 1.4+                                                             [Yes]
ImageMagick 6.5+                                                           [Yes]
--------------------------------------------------------------------------------

Installing dependencies
--------------------------------------------------------------------------------
The Gemfile's dependencies are satisfied
--------------------------------------------------------------------------------

Configure
--------------------------------------------------------------------------------
Your Redis host (default: 127.0.0.1:6379):
Your Elasticsearch host (default: 127.0.0.1:9200):
--------------------------------------------------------------------------------

Seed default data...                                                      [Done]

== Removing old logs and tempfiles ==

Ruby China Successfully Installed.

$ rails s

Testing

bundle exec rake

Reindex ElasticSearch

rake environment elasticsearch:import:all DIR=app/models FORCE=y

Contributors

Thanks

Forked from Homeland Project Theme from Mediom

Sites

License

Copyright (c) 2011-2016 Ruby China

Released under the MIT license:

Emojis under the CC-BY 4.0 license from Twitter/Twemoji:

About

:circus_tent: Ruby China website source code.

https://ruby-china.org


Languages

Language:Ruby 52.4%Language:HTML 20.0%Language:JavaScript 16.9%Language:CSS 5.7%Language:CoffeeScript 4.7%Language:API Blueprint 0.2%Language:Shell 0.2%