Skip to content

A feature-test-driven rails 4 image gallery demonstrating rspec, devise, and carrierwave

License

Notifications You must be signed in to change notification settings

codeunion/example-rails-4-image-gallery

Repository files navigation

A multi-user photo upload site built in rails.

Demonstration Objectives

This example is intended to demonstrate:

  1. Making small, purposeful commits
  2. Using feature-tests to shape your codebase
  3. Regular refactoring to the 4 rules of simple design (Taken a bit to an extreme)

Releases

Each feature is linked to a pull request which adds the feature. Every commit explains my reasoning in (some level of) detail. I'd recommend reading the pull requests oldest to newest, commit by commit, both messages and code.

Release 1.0.0

  • A guest may register as a User PR
  • A User may upload a Picture PR
  • A User may see a list of their Pictures PR
  • A guest may not find a Users Picture PR
  • A guest may view a Users Picture if they are given a secret read-only link. PR

Release 1.1.0

  • A User may create a Gallery
  • A User may add one of their Pictures to a Gallery
  • A guest may not find a Users Gallery
  • A guest may view a Users Gallery if they are given a secret read-only link.

Release 1.2.0

  • A User may make a Gallery public
  • A guest may browse public Gallerys

Release 1.3.0

  • A guest may suggest a Tag for a public Picture
  • A User may approve a Tag for a public Picture
  • A guest may browse public Pictures by Tag

Release 1.4.0

  • A guest may search public Gallerys for Pictures

Running the code

Once you've forked and cloned this repo, you'll want to:

  1. Configure AWS
  2. Configure S3
  3. Launch the app:
    bundle install
    rake db:setup
    rake
    rails s
    

About

A feature-test-driven rails 4 image gallery demonstrating rspec, devise, and carrierwave

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published