Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.28 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.28 KB

Gallery 📷

A static site site generator for photo galleries.

How to use

  • Install gatsby globally (npm install --global gatsby-cli)
  • Clone the repository
  • From inside the repository, run yarn (or npm install)
  • Add your photos to the src/images/photos/ directory. The directory names will be used as the album titles.
  • Run gatsby build. This might potentially take a long time (about 30s per 500 images). Your files will be in the public/ directory. Copy those to your static website host.

Deploying to S3

(this section adapted from here)

Set up AWS CLI

Create a IAM account with administration permissions and create a access id and secret for it. You’ll need these in the next step.

Make a copy of the example .env.example file to create the production environment .env:

cp .env.example .env.production

Add your AWS credentials and the name of the bucket you'll be going to use to .env.production.

Send your files to S3

Run:

yarn deploy

As this generator does not use progressive image loading as of now, it is recommended to run python cleanup.py before uploading in order to remove unused static files that might have been generated by Gatsby ImageSharp.