Giter Club home page Giter Club logo

boiler-plate-4.2's Introduction

Boiler Plate For Rails 4.2

Before you start

  1. Rename Application

config/application.rb

module BoilerPlate # <= Rename
  class Application < Rails::Application
  # ...

config/initializers/session_store.rb

Rails.application.config.session_store :cookie_store, key: '_boiler_plate_session' # <= Rename

/home/webonise/sample/boiler-plate-4.2/app/views/layouts/application.html.erb

<!DOCTYPE html>
<html>
  <head>
    <title>BoilerPlate</title> <!-- Rename -->
    <!-- ... -->

Add database.yml, secrets.yml

Copy the contents of database.example.yml to database.yml. Uncomment the required configuration as per the database requirement.

Copy the contents of secrets.example.yml to secrets.yml Generate new secrets with rake secret and replace with the old ones.

rake secret

HAML Support

In case you want HAML uncomment the following lines in Gemfile

# ...
gem 'haml'
# ...
group :development do
  # ...
  gem 'erb2haml'
  # ...
end
# ...

Execute the following tasks to convert or replace all .erb files.

rake haml:replace_erbs # Delete the original .erb files
rake haml:convert_erbs # Keep the original .erb files

Additional gems you may want to add

group :development, :test do
  gem 'awesome_print'
  # ...
end

group :test do
  gem 'factory_bot_rails'
  gem 'faker'
  # ...
end

group :development do
  gem 'annotate'
  gem 'bullet'
  gem 'erb2haml'
  gem 'xray-rails'
end

Change the ruby-version you want to use and the gemset

# .ruby-version
2.3.3

# .ruby-gemset
default

bundle

bundle install

*Welcome to Rails ๐Ÿ‘ *

boiler-plate-4.2's People

Contributors

deepakmahakale avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.