What are the steps to run a ruby and rails project after cloning from Github?

These days it is really easy to set up a project after cloning it from Github. Thanks to all the package managers or build tools. Unlike node or java the ruby and rails also have the package manager to resolve dependencies.

Once we clone the ruby and rails project from Github we need to do the following steps:

  • Open the Gemfile and find out the version of both and rails
  • Install the ruby and rails versions mentioned in the Gemfile
  • cd inside the project directory and run bundle install
  • If the bundle installation throws error resolve those
  • Now create the database with rake db:create
  • Migrate the seed data with rate db:migrate
  • Start the rails server using rails server

Source:
Ruby and rails get started