Starting a Rails Project From Scratch

Create your GitHub repository

  1. Visit https://github.com/appdev-projects/base-rails
  2. Click on “Use this template”
  3. In the “Owner” dropdown, select your GitHub organization and choose a name for your project
  4. Make sure “public” is selected
  5. Click “Create repository from template”

Create a Gitpod workspace off of your GitHub repository

  • Copy the URL of your GitHub repositroy
  • In the address bar of your browser type: gitpod.io/# + your GitHub repository URL
    • Alternatively, if you have the Gitpod extension installed, you can click on the Gitpod button

Differences between base-rails and a plain new Rails app

We’ve added our usual goodies to the base-rails repository that aren’t included automatically in a new Rails app.

Gems

Configuration files

  • .gitpod.yml
  • .pryrc
  • config/application.rb
  • config/initializers/active_record/attribute_methods_patch.rb
  • config/initializers/active_record/relation.rb
  • config/initializers/active_record/relation/calculations_patch.rb
  • config/initializers/active_record/relation/delegation_patch.rb.rb
  • config/initializers/fetch_store_patch.rb
  • config/initializers/nicer_errors.rb
  • config/initializers/open_uri.rb
  • config/initializers/rails_db.rb
  • config.ru
  • lib/tasks/auto_annotate_models.rake
  • Procfile

More details to come!