tnfshcec / tnfshcec-web

電機社社網
http://www.tnfshcec.com/
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Custom CMS / Git-Based Posting System #12

Closed Eggrror404 closed 8 months ago

Eggrror404 commented 11 months ago

Use Git to manage posts / files, as the current system

Using Git would provide a complete editing history, with ability to reverse changes; and with a remote GitHub repo, auth can also be done easily with repo permissions (specifically, write access to the repo).

References: https://keystatic.com/ - CMS using this approach https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#get-repository-permissions-for-a-user

Eggrror404 commented 10 months ago

To add more, I'd love to make the whole system into a custom CMS, with

Maybe even make it into a standalone package (definitely dreaming too big)

Eggrror404 commented 9 months ago

current plan

  1. create a github repository specifically for posts / contents
  2. determine admin role with write access to the repo
  3. our edit ui acts as a frontend to git, committing changes and pushing to github for the user
  4. (maybe) attach webhooks so we know when to pull from github
  5. (maybe) use a github app instead so permissions can be fine-tuned
Eggrror404 commented 8 months ago

41 just like that its gone