A static site site generator for photo galleries.
- Install gatsby globally (
npm install --global gatsby-cli
) - Clone the repository
- From inside the repository, run
yarn
(ornpm 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 thepublic/
directory. Copy those to your static website host.
(this section adapted from here)
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
.
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.