🎧 The source for my personal site. Built using 11ty (and other tools). https://www.coryd.dev/colophon
Find a file
2025-05-12 15:48:49 -07:00
api chore(mastodon.php): remove image uploads in favor of oembed previews 2025-05-12 14:45:05 -07:00
config feat(html): minify static and dynamic html output 2025-04-14 10:05:57 -07:00
queries fix(oembed.sql): return top artist image for oembed on genre pages 2025-05-10 19:03:08 -07:00
scripts feat(og-image.php): proxy open graph + meta images to mitigate cases where query params required by cdn may break requests 2025-05-07 17:50:15 -07:00
server/utils feat(package.json): add unified development command to run 11ty + php concurrently 2025-05-07 14:49:09 -07:00
src chore(sw.js): add lightweight service worker 2025-05-12 15:48:49 -07:00
.dockerignore chore(Dockerfile): build and deploy via Docker, remove Nixpacks 2025-04-28 11:29:16 -07:00
.editorconfig feat: initial commit 2025-03-27 17:09:59 -07:00
.gitignore feat: initial commit 2025-03-27 17:09:59 -07:00
.markdownlint.json feat: initial commit 2025-03-27 17:09:59 -07:00
.npmrc feat: initial commit 2025-03-27 17:09:59 -07:00
.nvmrc feat: initial commit 2025-03-27 17:09:59 -07:00
composer.json feat(html): minify static and dynamic html output 2025-04-14 10:05:57 -07:00
composer.lock feat(html): minify static and dynamic html output 2025-04-14 10:05:57 -07:00
Dockerfile chore(Dockerfile): build and deploy via Docker, remove Nixpacks 2025-04-28 11:29:16 -07:00
eleventy.config.js feat(html): minify static and dynamic html output 2025-04-14 10:05:57 -07:00
package-lock.json chore(sw.js): add lightweight service worker 2025-05-12 15:48:49 -07:00
package.json chore(sw.js): add lightweight service worker 2025-05-12 15:48:49 -07:00
README.md feat(package.json): add unified development command to run 11ty + php concurrently 2025-05-07 14:49:09 -07:00

coryd.dev

This is the source for my personal site built using 11ty, PHP and a number of other tools.

Local dev setup

npm run setup

This will generate the required .env file, apache configs, commands and php extensions to install and enable on the server (if needed).

Local dev workflow

  1. npm start
  2. Open http://localhost:8080

To debug and develop php components, run npm run php. This will start the PHP server on http://localhost:8000 and inject required environment variables from .env. It will also serve the static 11ty files from dist, so you can test the full site locally while leaving 11ty running to generate updates to files it watches.

Commands

  • npm run start: starts 11ty.
  • npm run start:quick: starts 11ty a bit quicker (provided it's already been built).
  • npm run debug: runs 11ty with additional debug output.
  • npm run watch: watch and update when files change without running the web server.
  • npm run build: builds static site output.
  • npm run php: starts a PHP server for local development.
  • npm run dev: primary dev command that runs watch and php concurrently.
  • npm run update:deps: checks for dependency updates and updates 11ty.
  • npm run setup: populates .env from 1Password and installs dependencies using npm and composer.
  • npm run clean: removes the dist and .cache folders.
  • npm run clean:cache: removes the .cache folder.
  • npm run clean:dist: removes the dist folder.

Required environment variables

POSTGREST_URL              # client + server + build
POSTGREST_API_KEY          # client + server + build
MASTODON_ACCESS_TOKEN      # server
MASTODON_SYNDICATION_TOKEN # server
FORWARDEMAIL_API_KEY       # server
BOOK_IMPORT_TOKEN          # server
WATCHING_IMPORT_TOKEN      # server
TMDB_API_KEY               # server
NAVIDROME_SCROBBLE_TOKEN   # server
NAVIDROME_API_URL          # server
NAVIDROME_API_TOKEN        # server
ARTIST_IMPORT_TOKEN        # server
COOLIFY_REBUILD_TOKEN      # server
COOLIFY_REBUILD_URL        # server
GIT_REPO                   # build
SERVER_URL                 # build