Skip to content

Backend Training: Project Setup

Nelson Lee edited this page Nov 29, 2017 · 4 revisions

Clone Rails Starter Template and create a new project

🔖 : Rails Starter Template

Follow the instructions and set up a new project with the rails-starter-template.

Setup Overcommit

🔖 : Overcommit

Overcommit help you check your code against linters when you try to commit to ensuring that it meets all the coding standards.

(Optional) For First Timers - Skip this step if you used Rubocop or Overcommit on your machine before

If you have never used overcommit or Rubocop, please install it first. Rubocop is the ruby community standard for coding guidelines. For more info, please visit the official repositories:

$ gem install rubocop
$ gem install overcommit

Installation

# Install gems required for overcommit at .overcommit_gems
$ bundle install --gemfile=.overcommit_gems.rb
# Make overcommit executable inside your project directory
$ chmod +x bin/setup_overcommit
# Execute Overcommit
$ overcommit --install