Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSSE-490-lab-2

Lab 2: Photo Processing App

Project Setup

Cloning and Installing Dependencies

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>

$ bundle

Running Tests

Run 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.

Running Locally

$ rerun rackup
  • rerun watches for filesystem changes and restarts your app as needed
  • rackup runs rack applications (Sinatra is a rack application)

Your app should now be running on localhost:9292.

Deploying to Heroku

Creating the Heroku application

$ heroku create
$ git push heroku main

$ heroku open

Testing in a local Heroku environment

$ heroku local

Pushing up new updates to the existing application

$ git push heroku main

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages