Find a file
Jeffrey Phillips Freeman 8ccafa289b
Fixed date on recent post
2023-10-09 15:44:25 -04:00
api err set and array have different ways to access size... 2023-10-09 13:14:29 -04:00
archetypes initial commit 2023-10-08 01:35:17 -04:00
assets Refactored config to be easier for people to extend, covered the head.html so far 2023-10-08 15:02:56 -04:00
config/_default Added some more variable settings and expanded the readme to have more complete notes on a fresh install 2023-10-08 16:30:04 -04:00
content Fixed date on recent post 2023-10-09 15:44:25 -04:00
layouts Made default hashtags in posts links 2023-10-09 15:42:51 -04:00
lib initial commit 2023-10-08 01:35:17 -04:00
static Fixed syntax error in manifest 2023-10-08 17:09:00 -04:00
.gitignore Cleaned up .gitignore slightly 2023-10-08 12:42:25 -04:00
.gitlab-ci.yml Updated the gitlab CI to be more customizable 2023-10-08 15:17:22 -04:00
.hugo_build.lock initial commit 2023-10-08 01:35:17 -04:00
.nowignore initial commit 2023-10-08 01:35:17 -04:00
CHANGELOG.md Added CHANGELOG and CONTRIBUTORS files 2023-10-08 12:53:19 -04:00
CODE_OF_CONDUCT.md Added some informational markdown files 2023-10-08 13:02:45 -04:00
config.json initial commit 2023-10-08 01:35:17 -04:00
CONTRIBUTING.md Added some informational markdown files 2023-10-08 13:02:45 -04:00
CONTRIBUTORS.md Added CHANGELOG and CONTRIBUTORS files 2023-10-08 12:53:19 -04:00
generateKeys.mts initial commit 2023-10-08 01:35:17 -04:00
hugo.toml Added support for tags for an individual article and tag rendering options 2023-10-09 15:23:11 -04:00
LICENSE initial commit 2023-10-08 01:35:17 -04:00
NOTICE Added some informational markdown files 2023-10-08 13:02:45 -04:00
package-lock.json initial commit 2023-10-08 01:35:17 -04:00
package.json initial commit 2023-10-08 01:35:17 -04:00
README.md Added a small missing step to readme 2023-10-08 16:31:38 -04:00
tsconfig.json initial commit 2023-10-08 01:35:17 -04:00
vercel.json Fixed wildcard 2023-10-09 11:21:05 -04:00

Generate Activity Pub key

npm install ts-node typescript '@types/node'
./node_modules/.bin/ts-node --esm generateKeys.mts

Setup firebase

Setup the things

Setup Vercel

Setup the things

Trigger post deploy

curl -G -X POST --data-urlencode token="<token>" https://flear.org/send-note

License

This project (excluding post content itself) is released under the Apache License v2

Notes to reconcile later

  • Set configuration in /hugo.toml (defaults are in /config/* dont touch)
  • Set Gitlab CI ENV variables: ** VERCEL_ORG_ID ** VERCEL_PROJECT_ID ** VERCEL_TOKEN (mask this and make it availible to only protected) ** VERCEL_SCOPE (set to vercel team id, find with vercel team ls after creating)
  • Set vercel environment variables (vercel.com > project > Settings > Environment Variables) (set on production only usually) ** POLL_MILLISECONDS (set to 250000 or higher) ** ACTIVITYPUB_PRIVATE_KEY (get this value from generating the keys in the pervious step) ** ACTIVITYPUB_PUBLIC_KEY (get this value from generating the keys in the pervious step) ** FIREBASE_PRIVATE_KEY ** FIREBASE_CLIENT_EMAIL ** NEXT_PUBLIC_FIREBASE_PROJECT_ID
  • Modify /layouts/partials/top_list_* to represent the section titles you want to use.
  • Update package.json ** Update name field ** update description field
  • Update manifest.json ** name ** short_name ** description
  • Update robots.txt to point to the full URL of this site
  • Modify vercel.json ** Find the line where source is set to "/flear" and update it to point to your apUser name (all lowercase even if variable has case).
  • Go through the /api and manually change references (this step will either be explained later or not needed soon, just a reminder placeholder)

The above steps might be reduced by using template processing on otherwise unprocessed files (normally not part of hugo). See the following for more info https://vercel.com/docs/functions/serverless-functions/runtimes/node-js