A personal landscape and nature photography website, hosted as a static website on S3 and delivered by CloudFront.
npm install
Add photos as desired - see adding photos
npm run build
Use .env.example
as a starting point to create config files for deployment to staging and production: .env.production
and .env.staging
.
- Add photos of appropriate sizes to src/static/photos/ subdirectories, in both @1x (implicit) and @2x sizes
- e.g photos in l840 directory should contain photos 840px on the long edge (either width or height)
- photos in w200 directory should contain photos 200px wide
- Add thumbnail image containing all metadata to src/metadata_images/<gallery>/ folder
npm run add-photos
extracts metadata and rebuilds the gallery and photo pages
The following need to be installed and in the PATH
- Node.js - version as specified in .nvmrc
- npm
- exiftool
npm run build
Start an express server
npm run serve
The deployment scripts deploys to an s3 bucket using aws2 and invalidates the relevant distribution
npm run deploy staging|production [--dryrun]
See issues