Static site generator for creating a photo sharing website.
Go to file
mmcwilliams 86e60cb25d Fix all dates 2024-12-21 01:04:22 -05:00
dist Fix all dates 2024-12-21 01:04:22 -05:00
less Site is building. Let 'er rip. 2024-12-10 21:38:41 -05:00
notes Generate done. 2024-12-09 15:15:27 -05:00
scripts Fixed post, but dates are wrong 2024-12-21 00:13:39 -05:00
sql Site is building. Let 'er rip. 2024-12-10 21:38:41 -05:00
src Fix all dates 2024-12-21 01:04:22 -05:00
test Initial commit :P 2024-01-06 00:25:07 -05:00
views Site is building. Let 'er rip. 2024-12-10 21:38:41 -05:00
.gitignore All work from tonight. Almost there 2024-12-02 23:09:32 -05:00
LICENSE Initial commit :P 2024-01-06 00:25:07 -05:00
README.md Combine parsed metadata object into single photo record. Maybe move dimensions code out of the for loop into that async 2024-12-05 14:55:12 -05:00
default.env Run posts 2024-12-11 02:03:46 -05:00
package-lock.json Site is building. Let 'er rip. 2024-12-10 21:38:41 -05:00
package.json Site is building. Let 'er rip. 2024-12-10 21:38:41 -05:00
tsconfig.json Run posts 2024-12-11 02:03:46 -05:00

README.md

photosite

Static site generator for building a simple photo site.

Install

npm i

Create a .env file by copying the default.env file and modifying the values as needed.

Generate Site Data

The following command will sync the data with s3, generate metadata for each new photo and produce all required thumbnails required for the site.

bash scripts/generate.sh

Build Site

This command will build the website using the sqlite + photo data available at the time it is run.

bash scripts/build.sh

File Naming

Photos should be named with relavent metadata in the filename so that the scripts can parse out the data. The underscore character (_) is the delimiter between elements and dash (-) should be used in place of spaces. The hash character (#) should be used to split between the metadata filename and the original file, so that it can be searched for if needed.

Elements are expected in the following order:

  1. year
  2. month
  3. day
  4. format
  5. filmstock
  6. location
  7. description
  8. original
2024_12_02_35mm_Kodak-Gold-200_Somerville-MA_Walk-towards-Harvard-Square#000061280009.tif