Skip to content

Instantly share code, notes, and snippets.

@PrakharGarg
Last active November 12, 2016 18:45
Show Gist options
  • Select an option

  • Save PrakharGarg/208a9e263ec437ef554230873263f1fb to your computer and use it in GitHub Desktop.

Select an option

Save PrakharGarg/208a9e263ec437ef554230873263f1fb to your computer and use it in GitHub Desktop.
################################################################################
## SETUP
################################################################################
# Get RVM and ruby
\curl -sSL https://get.rvm.io | bash -s stable --ruby
# Make sure you have ruby dev
sudo apt-get install ruby-dev (linux)
xcode-select --install (mac)
# Install bundler
gem install bundler
# Install Rails
gem install rails
sudo apt-get install rails (linux)
################################################################################
## First App
################################################################################
# Create the app
rails new {enter name here}
# Make sure you install the Gemfile
bundler install
# Run the server
rails server (rails s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment