2023-10-08 07:35:17 +02:00
## Generate Activity Pub key
```bash
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
2023-10-08 21:17:22 +02:00
# 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)
2023-10-08 21:49:05 +02:00
* 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
2023-10-10 01:44:38 +02:00
** ACTIVITYPUB_URL
** ACTIVITYPUB_USER
2023-10-10 02:15:05 +02:00
** ACTIVITYPUB_URL_ALIAS
** ACTIVITYPUB_USER_ALIAS
2023-10-10 01:51:49 +02:00
** ACTIVITYPUB_NAME
** ACTIVITYPUB_SUMMARY
2023-10-08 22:30:04 +02:00
* 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).
2023-10-08 22:31:38 +02:00
* Go through the /api and manually change references (this step will either be explained later or not needed soon, just a reminder placeholder)
2023-10-08 22:30:04 +02:00
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
2023-10-10 02:15:05 +02:00
NOTE: Once we move the project over to a dedicated git, change the node info under api and track the version