This is starter application template for Ruby on Rails 5.
- Rails 5.0.0.1
- Ruby on Rails 5.0
- Twitter Bootstrap 3
- FontAwesome
- Slim Template Engine
- MySQL
- Rspec
- Devise
- ActiveDecorator
MVC + Service + Decorator
- Models: app/models
- Views: app/views
- Controllers: app/controllers
- Services: app/services
- Decorators: app/decorators
$ git clone git@github.com:takp/rails5-boilerplate.git
$ cd rails5-boilerplate
$ bundle install
We use dotenv gem To keep the credentials safe. Please input your credentials into .env file after copying from .env.sample.
cp .env.sample .env
Input your database credentials into .env file.
DB_HOST=localhost
DB_USERNAME=username
DB_PASSWORD=password
$ bundle exec db:create
$ bundle exec db:migrate
After finish the database configuration,
$ bin/rails server
and go to http://localhost:3000/.
$ bundle exec rspec