Eyelook: Rails photo gallery
Posted by Peter Donald Fri, 21 Apr 2006 04:55:00 GMT
Eyelook is a photo gallery I created over a weekend when I was home sick. It is amazing how productive rails can make you because within 8 hours I had the code in place and had set it up on my personal web server.
Very little of that time was spent coding – most of it was spent working on re-arranging the xhtml+css or figuring out how to go about Loading Binary Data into Rails Fixtures.
Every eyelook application has a set of users who have a list of albums with pictures. The image data is stored in the database and cached on the filesystem on demand. This way a backup of the database backs up the complete system.
An example of users page that lists galleries is
You can select one of these galleries and it will bring up a list of images such as
From there you can either download the original or can view a larger lightbox style image
The admin section is not as sexy but it is functional.
You can grab the source from subversion via the following command. Read the README.txt for installation instructions.
svn co http://www.realityforge.org/svn/code/eyelook/trunk eyelook



got a link to see the gallery in practice?
John Engler
Unfortunately there is no public demo. I may try to put one up over next week.
Peter Donald
Just a quick note on installation. Step three involves firing up the console (rather than a server) to add a new user.
Also, step 4 has a typo for the start server line. Should be:
Thanks for releasing your source! Looking forward to perusing it tonight.
Dave Lehman
Fixed.
Peter Donald
Just a note: If you’re using MySQL, i think it requires subselects, so needs to be > version 4.1 IIRC.
Lucian
where is the eyelook.sql file ???, ..
eyelook.sql ???
There is no sql file. You create the database in step 3 by doing “rake migrate” which creates the database using rails migrations.
Peter Donald
Thanks.
anon