This is a little site for sharing my photos. The focus was to build something simple, easy to maintain, and cost-free.
- Middleman is used for the overall site
- Imgur is used for image hosting
- Bulma for style
- sqlite3 to store stuff locally (like photo links)
- Ruby
- Bundler
- Yarn
- sqlite3
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=
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]"