Initial Setup Requirements / START HERE

You’ll want:

  • Ruby: 2.6.3

  • Postgres

  • Git & set it up with your information

  • Redis installed and running (for this I recommend using Homebrew services)

Getting set up with Ruby on a new computer can seem pretty daunting at first. Luckily, I have a great resource that I use to set up my new computers. The handy guide over on GoRails will walk you through setting up your computer for development. Once you finish that, come back and we’ll get into the meat of it.

NOTE: You can skip the MySQL installation, but make sure you install Postgres. We’ll be using Postgres for our database in this course.

Why are you not covering it here?

The simplest reason is, every time a new operating system version or Rails/Ruby version comes out, I’d need to come back and update the guide here. I know Chris Oliver who runs GoRails and he keeps the guide updated quickly. Plus he put a lot of time into ensuring most operating systems (like Ubuntu) are covered. If you need help with getting set up, drop me a line and I’ll help you out. 

We can verify things are set up correctly by running:

ruby -v

You should get something back like: 

ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]

Next, let’s check the Rails version.

rails -v

Should return Rails 6.0.0rc1 or higher.

Lastly, let's check Postgres is installed.

postgres --version


As long as this returns a version higher than 9.6 you should be good to go. The latest versions on Homebrew ship with Postgres 10 or higher.

Need the link to the guide again? It's here. 

Learn Rails by Building Instagram (2019, Rails 6)

Buy nowLearn more

Introduction

  • What is Ruby on Rails?
  • Why Rails?
  • Initial Setup Requirements / START HERE2
  • Troubleshooting Checklist
  • What are we Building?

Getting Started

  • Running rails new2
  • Installing Bootstrap with Webpacker1
  • Setting up our Basic Navbar

Adding Users

  • Installing Devise / Generating User model
  • Updating our Navbar with working links
  • Extending the User Edit page
  • Adding Flash Messages3
  • Adding User Profiles1

ActiveStorage Introduction

  • Installing ActiveStorage / Adding Avatars to Users

Posts

  • Creating Post Model and Controller1
  • Adding Validations1
  • Adding Post Feed (Post index)2
  • Adding Posts to Profile / Post Deletion
  • Adding Likes to Posts7

Post Comments

  • Starting to add Post Comments1
  • Installing Stimulus.js & Finishing Basic Comments
  • Paginating Comments for infinite scroll (custom pagination with Stimulus)
  • ActionCable Introduction / Realtime Comments
  • Comment Fixes / Touchups
  • Allow Adding Comment on Post Creation1

User Following

  • Creating our Follow model
  • Wiring up Following
  • Only See Posts From People You Follow

Preparing for Production / Deployment

  • Polishing User Profile
  • Polishing User Edit Page & Devise Error Message Helper
  • Polishing Signup and Login Pages
  • Polishing Forgot Password and Welcome Page
  • Adding Local Time
  • Deploying to Hatchbox1

Conclusion / Thank You

  • Thank You!
  • Provide Feedback Here
  • Source Code