Skip to content

dao42/rails-template-example

Repository files navigation

rails_template_example

The source code of rails_template_example

Installation

Install dependencies:

  • postgresql

    $ brew install postgresql

    Ensure you have already initialized a user with username: postgres and password: postgres( e.g. using $ createuser -d postgres command creating one )

  • rails 6

    Using rbenv, update ruby up to 2.5 or higher, and install rails 6.0.0-rc1

    $ ruby -v ( output should be 2.5.x or 2.6.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.0.0-rc1 )
  • yarn

    Install yarn for webpacker( see install document: https://yarnpkg.com/en/docs/install)

    $ yarn --version( output should be 1.6.x or higher )

Then,

$ bundle install
$ yarn install
$ rails db:setup
$ rails db:seed
$ ./bin/webpack-dev-server
# open new terminal tab
$ rails s

Tech stack

  • Ruby on Rails 6.0
  • bootstrap 4
  • font-awesome 5
  • figaro
  • postgres
  • slim
  • simple_form
  • high_voltage
  • active_storage
  • sidekiq
  • kaminari
  • mina
  • puma
  • rspec

Built with

dao42/rails-template

LICENSE

MIT