rails-template
                                
                                
                                
                                    rails-template copied to clipboard
                            
                            
                            
                        A best & newest & fastest rails 6.x template for senior rails developer.
dao42/rails-template
dao42/rails-template has supported the newest rails 6.1.x project setup
Maybe the best & newest & fastest rails template for senior rails developer.
It maybe the best starting for your new rails project.
An example built with rails-template: https://github.com/dao42/rails-template-example
Core Idea
dao42/rails-template apply lots of good components for you to make development damn quick.
dao42/rails-templatekeep the newest easily because it's a realRails Application Template.dao42/rails-templatelove the newest standard components of Rails 6, usingwebpackerand removeassets pipeline.dao42/rails-templateis out-of-box for your development based onbootstrap4.dao42/rails-templateis out-of-box for your deployment based onmina.
How to use
Install dependencies:
- 
postgresql
$ brew install postgresqlEnsure you have already initialized a user with username:
postgresand password:postgres( e.g. using$ createuser -d postgrescommand creating one ) - 
rails 6
Using
rbenv, updaterubyup to 2.7 or higher, and installrails 6.1.x$ ruby -v ( output should be 2.7.x or 3.x ) $ gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.com/` (optional, Chinese developer recommend) $ gem install rails $ rails -v ( output should be rails 6.1.x ) - 
yarn
Install
npm,yarnfor webpacker( see install document: https://yarnpkg.com/en/docs/install)$ yarn --version( output should be 1.6.x or higher ) $ npm config set registry https://registry.npm.taobao.org (optional, Chinese developer recommend) 
Then,
- 
Add
gems.ruby-china.comto your bundle mirrors (optional, Chinese developer recommended)$ bundle config mirror.https://rubygems.org https://gems.ruby-china.com - 
Create your own rails app applying
rails-template$ rails new myapp -m https://raw.githubusercontent.com/dao42/rails-template/master/composer.rbImportant!! replace
myappto your real project name, we will generate lots of example files by this name. - 
Done! Trying to start it.
$ rails s 
What we do
rails-template apply lots of good components for you to make development damn quick.
- 
ActionCableandTurbolinksfeatures are opened by default. - 
Bootstrap4andfont-awesomeare integrated to make your products UI easily, it aslo has some example pages for you to quickly start. - 
active_storageandlocalfile mode are opened by default. - 
minaand its plugins are out-of-box for your deployment. - 
slim,simple_form,kaminari,high_voltageare installed. - 
adminlte 3is ready for your administrator dashboard. - 
rspec,factory_bot_rails,database_cleanerare ready for your testing automation. - 
Zero-down phase-restart mode is out-of-box with
mina-ng-puma. - 
monit,nginx example,https ssl example,logrotate,backup exampleis ready for you. 
Other gems integrated in rails-template are worth learning seriously.
Integrated mainly technology stack and gems
- Ruby on Rails 6.0
 - bootstrap 4
 - font-awesome 5
 - figaro
 - postgres
 - slim
 - simple_form
 - high_voltage
 - active_storage
 - sidekiq
 - kaminari
 - mina
 - puma
 - rspec
 - adminlte 3
 
Starting with webpacker document
Deployment document
Roadmap
- [x] Add AdminLTE as admin dashboard
 
Projects that using dao42/rails-template
Welcome to pull request here to update this if you choose dao42/rails-template for your new rails app.
LICENSE
MIT