A webapp to view photos and organize them into albums.
Ruby CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor
.bowerrc
.buildpacks
.gitignore
.gitmodules
.ruby-version
.travis.yml
Brewfile
Gemfile
Gemfile.lock
LICENSE
Procfile
Procfile.dev
README.md
Rakefile
bower.json
config.ru
package.json

README.md

Photo Albums

A webapp to view photos and organize them into albums.

And a learning experience for me to play with Ember.

Development

Set up your environment by installing all the dependencies:

brew bundle
bundle install
npm install -g bower
bower install

Create a self-signed certificate for local SSL and put the .key and .crt in the config/ folder. Then run foreman start -f Procfile.dev to launch the server at https://localhost:3000/.

Run all the tests with bundle exec rake. Run individual Ruby tests with bundle exec rspec spec/.... Run JavaScript tests by going to http://localhost:8888/.

Feature tests

If you want to do live feature tests using an AWS account, set up the same environment variables as in deployment, but additionally include:

  • LIVE_FEATURE_SPECS (set this to anything)
  • TEST_ACCESS_KEY_ID
  • TEST_SECRET_ACCESS_KEY

The purpose of the separate access keys is to separate uploading and downloading permissions.

Missing pieces

You must provide some pieces yourself:

  • privacy policy - app/views/static_pages/privacy.html

Deployment

Deployed on Heroku using the multi-buildpack according to these instructions.

You'll need to create the following environment variables:

  • AWS_REGION
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY