Vote for pictures, choose the best ones.
You and your friends were on a trip and took few thousands of pictures. You'd like to choose the best ones to show them to people who missed the trip. Choosing them manually might be pretty time consuming. Here comes Picvote. It allows you to browse your pictures and easily rate them in binary scale (like it or not).
- Bundler and gems listed in
Check out the repository and follow these steps:
bundle install mkdir pics && cp ~/pictures/*.jpg pics/ # Resizing your pictures to a smaller size # might be a good idea. for p in pics/*.jpg; do convert $p -resize 1024 $p; done DATABASE_URL=sqlite://`pwd`/db.sqlite bundle exec rackup
During the first launch it may take some time before the application starts. All
./pics/ have to be loaded to the database.
Authentication and authorisation
Google OAuth API is used for authentication. Only signed in users are allowed to
interact with the application. You can limit the list of authorised users by
config/authorised.txt and populating it with their GMail addresses,
one per line. If
config/authorised.txt doesn't exist or is empty everyone will
be able to sign in and use the application.
config/authorised.txt take effect after restarting the application.
- Show voting results.