90 points · by _ompc · 13y ago · 22 comments
Was just going through the Gemfile, and I love how he broke out the gems in the various categories - from debugging, to databases, to search, to caching to everything else.
It just makes the code so much easier to read and understand.
As a result of this repo, I looked into Slim - but the official docs are awful, so I won't be adopting that any time soon.
But this app is very interesting to read through.
You can tell a lot of work was put into this.
I've only recently started organising my Gemfile like this as I was really struggling with redundant gems lying around. I'm glad you like it :D
So I guess my first question about Slim is how does it work?
For instance, I am trying to figure out how on your home page, you have the following copy:
Upload, organise, and share your photographs alongside others, like Robert May did with this superb image.
Where 'Robert May' and 'superb image' are dynamic links - that correspond to the image below it (although maybe you may want to change the copy to "the superb image below" or something of the sort, because it took me a while to realize that image showing on the page is the same image you were talking about and linked. I thought they were 2 different images).
So, I guess just to start off...where is the actual copy of "Upload, organise, and share your photographs...." actually stored. I don't see that copy in the .slim file at all. It seems to be abstracted to 'home.blurb' - https://github.com/afternoonrobot/photographer-io/blob/maste...
But I have no idea where that is.
Sorry if this changes the topic a bit, but I am curious.
It should inspire me to polish up the test suite too; it's very lacking right now!
Have been urgently needing an alternate to Flickr/Picasaweb/500px lately and really haven't liked most the other options out there.
I've signed up for a proper play.
I'm always keen to hear any feedback you have, and obviously now you can also help contribute to making it the site you want too :D
What is the minimum to get this up and running locally for test/dev? I know this isn't exactly meant for ruby/rails newbies -- but according to a few searches, (and the readme) it looks like I need:
* postgresql 9+
* redis
* memcached
* solr (is it needed for test/dev?)
* ruby 2.0 and rails 4.0
It looks like a sane way to get a rails 4 dev environment for the local user (on a recent Debian system) is: \curl -L https://get.rvm.io | bash -s stable --rails
So, with the various servers installed, should the line above, paired with a checkout of the repo allow me to do: rails serve
And have a look at a local install of this thing?I've just pushed up what are hopefully some useful instructions on getting it running, so the README should now be a little more helpful: https://github.com/afternoonrobot/photographer-io#developmen...
It's not entirely straightforward to set up, and I must confess that it has been a while since I did it from scratch. Assuming you already have Ruby installed, then you would definitely need the following: PostgreSQL 9+ (probably 9.2+), Redis, Memcached. Solr probably won't break anything if it doesn't exist, except for the search.
If you have any trouble getting it going or need a hand, give me a shout on Twitter (@robotmay) and I'll open up an IRC channel to help you through it. I might need to do that anyway actually, as I suspect there'll be a few people with issues :D
Thanks!
Edit: One other thing - right now, invites get you more uploads. Depending on how heavy-handed you want to be about good contributions, it might help to require the invitee to upload at least one picture or recommend at least 3 pictures before the inviter gets their additional uploads. That might slow the growth too much though. It's definitely a balance.