rails-template has supported the newest rails( 5.1 ) setup
A best & newest & fastest rails template for chinese senior rails developer.
It's a best starting for your new rails project.
An example built with rails-template: https://github.com/80percent/rails-template-example
Install dependencies:
-
postgresql
$ brew install postgresqlEnsure you have already initialized a user with username:
postgresand password:postgres( e.g.$ createuser -d postgres) -
rails 5
Update
rubyup to 2.2 or higher, and installrails 5.1$ ruby -v( output should be 2.2.x or 2.3.x or 2.4.x )$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/(optional)$ gem install rails$ rails -v( output should be rails 5.1.x )
Then,
-
Add
gems.ruby-china.orgto your bundle mirrors (optional)$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org -
Create your own rails app applying
rails-template$ rails new myapp -m https://raw.github.com/80percent/rails-template/master/composer.rb
rails-template apply lots of good components for you to make development damn quick.
-
we use
Ruby on Rails 5,ActionCableandTurbolinksfeatures are opened by default. -
Bootstrap3andfont-awesomeare integrated to make your products UI easily, it aslo has some example pages for you to quickly start. -
carriewaveandcarriewave-upyunare integrated. -
minaand its plugins are the best & simplest deployment tools in the world for rails app. -
slim,rspec,high_voltageand so on.
Other gems integrated in rails-template are worth learning seriously.
- Ruby on Rails 5
- bootstrap 3
- font-awesome
- figaro
- postgres
- slim
- simple_form
- high_voltage
- carriewave & upyun
- sidekiq
- kaminari
- mina
- puma
- lograge
Welcome to pull request to update this if you choose rails-template for your new rails app.
- 八十二十
- 单麦 - 单品电商平台
- etc...
MIT