Skip to content

Instantly share code, notes, and snippets.

View cadyherron's full-sized avatar

Julia Herron Flanagan cadyherron

View GitHub Profile
Start your server with ./run.py
'g' is Flask's global file
Images, stylesheets, JS files go into app/static
==============
CONTROLLER:
==============
Route handlers are written as Python functions
@cadyherron
cadyherron / rails_heroku.md
Last active February 29, 2016 23:57
How to deploy Rails app to Heroku with Figaro vars
  1. add the following to your Gemfile:

      gem 'rails_12factor'
    end```
    
    `gem 'figaro'`
    
    
    
  2. run bundle exec figaro install

@cadyherron
cadyherron / rails_testing_setup.md
Last active February 29, 2016 23:58
How to setup RSpec, Capybara, and Factory Girl for Rails project

Note: you want to do include -T when you first run rails new

  1. add the following to your Gemfile:

    group :development do gem 'guard-rspec', require: false end

group :test do

@cadyherron
cadyherron / rails_basic_setup.md
Last active February 29, 2016 23:51
Steps to create a basic Rails app with Bootstrap
  1. create rails app with rails new yourapp --database=postgresql -T

  2. create Github repo, cd into your app, git init, git remote add origin git@github.com:username/yourapp.git, git commit -am, git push -u origin master

  3. add to Gemfile:

      gem 'jazz_hands', github: 'nixme/jazz_hands', branch: 'bring-your-own-debugger'
      gem 'pry-byebug'
    

gem 'better_errors'