###On your computer
Create a new folder in ~/ga_wdi called drills
Initalize a new git repo in drills
Add a Ruby file called first_date.rb
Add and commit the file
###On Github
Create a new repo called drills
| Example of Git Cloning | |
| mkdir Projects | |
| cd Projects | |
| git clone git@github.com:ml242/courtPO.git | |
| cd courtPO | |
| cd courtPO //just in case it is two files deep | |
| bundle install // You need to install any gems | |
| rake db:create //create database | |
| rake db:migrate // migrate any models |
| # Configure Rspec to print nice | |
| RSpec.configure do |config| | |
| # Use color in STDOUT | |
| config.color_enabled = true | |
| # Use color not only in STDOUT but also in pagers and files | |
| config.tty = true | |
| # Use the specified formatter | |
| config.formatter = :documentation # :progress, :html, :textmate | |
| # immediately stop running upon first failure | |
| config.fail_fast = true |
| development: | |
| adapter: postgresql | |
| encoding: unicode | |
| database: <%= File.basename(Rails.root) %>_development | |
| pool: 5 | |
| host: localhost | |
| username: <%= ENV['PG_USERNAME'] %> | |
| password: | |
| test: |
| #Gemfile | |
| group :development, :test do | |
| gem 'pry-rails' # Causes rails console to open pry | |
| # https://github.com/rweng/pry-rails | |
| gem 'pry-debugger' # Adds step, next, finish, and continue commands and breakpoints | |
| # https://github.com/nixme/pry-debugger | |
| gem 'pry-stack_explorer' # Navigate the call-stack | |
| # https://github.com/pry/pry-stack_explorer | |
| gem 'annotate' # Annotate all your models, tests, fixtures, and factories | |
| # https://github.com/ctran/annotate_models |