Skip to content

Instantly share code, notes, and snippets.

View ladiadeniran's full-sized avatar
💭
Building

Ladi Adeniran ladiadeniran

💭
Building
  • Blacklane
  • Berlin, Germany
  • 01:55 (UTC +01:00)
  • X @ultra_noir_
View GitHub Profile
@ladiadeniran
ladiadeniran / rails_setup.md
Created November 16, 2020 16:27 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License