shkm / photos

My little photo gallery for dumping pics.

Home Page:http://photos.schembri.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photos

photos.schembri.me

This is a little site for sharing my photos. The focus was to build something simple, easy to maintain, and cost-free.

Technology

  • Middleman is used for the overall site
  • Imgur is used for image hosting
  • Bulma for style
  • sqlite3 to store stuff locally (like photo links)

Dependencies

  • Ruby
  • Bundler
  • Yarn
  • sqlite3

Dev setup

bundle install
bundle exec rake db:create db:migrate
yarn install

Auth with Imgur, and copy details into .env in the following format:

IMGUR_CLIENT_ID=
IMGUR_CLIENT_SECRET=
IMGUR_ACCESS_TOKEN=
IMGUR_REFRESH_TOKEN=

Uploading photos

This task may need to be run a few times before all photos complete upload. Imgur's rate limits don't seem to be quite that set in stone.

rake "albums:add_photos[album name, date, folder_path]"

e.g.

rake "albums:add-photos[My awesome photos, 2019-05-18, some_dir]"

About

My little photo gallery for dumping pics.

http://photos.schembri.me


Languages

Language:Ruby 73.9%Language:HTML 13.5%Language:JavaScript 11.5%Language:CSS 1.1%