Lab 2: Photo Processing App
Make sure you have Ruby 3.1.4 or Ruby 3.2.x installed locally on Windows using WSL or on Mac/Linux. To push to Heroku, you'll also need to install the Heroku CLI). If using Ruby 3.2.x, update the .ruby-version file to match your version of Ruby.
You will need imagemagick installed in order to do this lab. Instructions for installing ImageMagick can be found here: https://github.com/rmagick/rmagick Important: If you are using WSL, you should be installing this in your Ubuntu VM, not on Windows itself.
$ git clone <repo url>
$ cd lab-2-<your_github_username>
$ bundleRun the full test suite with rake or rake test.
Run a single test with rspec spec/path/to_spec.rb:6, replacing rspec/path/to_spec.rb with the path to your actual test, and 6 with the actual line number of the test you are trying to run.
$ rerun rackuprerunwatches for filesystem changes and restarts your app as neededrackupruns rack applications (Sinatra is a rack application)
Your app should now be running on localhost:9292.
$ heroku create
$ git push heroku main
$ heroku open$ heroku local$ git push heroku main