🎧 The source for my personal site. Built using 11ty (and other tools): https://coryd.dev/colophon
Find a file
2025-03-31 13:07:09 -07:00
api chore(post.html): drop post links to mastodon 2025-03-28 18:05:45 -07:00
config chore(css-config.js): drop autoprefixer dependency 2025-03-31 13:07:09 -07:00
queries chore(post.html): drop post links to mastodon 2025-03-28 18:05:45 -07:00
scripts feat: initial commit 2025-03-27 17:09:59 -07:00
server/utils feat: initial commit 2025-03-27 17:09:59 -07:00
src fix(media.css): highlight text helper class for grids and heros 2025-03-31 11:19:47 -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: initial commit 2025-03-27 17:09:59 -07:00
composer.lock feat: initial commit 2025-03-27 17:09:59 -07:00
eleventy.config.js feat: initial commit 2025-03-27 17:09:59 -07:00
nixpacks.toml feat: initial commit 2025-03-27 17:09:59 -07:00
package-lock.json chore(css-config.js): drop autoprefixer dependency 2025-03-31 13:07:09 -07:00
package.json chore(css-config.js): drop autoprefixer dependency 2025-03-31 13:07:09 -07:00
README.md chore(README): add header, description and link to colophon 2025-03-28 15:45:06 -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 build: builds static site output.
  • npm run debug: runs 11ty with additional debug output.
  • npm run php: starts a PHP server for local development.
  • 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