Design: where published posts live, and what a stored post contains

Aperta
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown, sqlite

Direzione di ricerca

Read parent issue #16 and compare D1, R2, and KV against the listed blog and Worker requirements. Then write a decision record in docs/adr/ covering the store and layout, rendering choice, post shape, Worker reads, CMS writes and permissions, rejected options, rollback identification, and estimated read costs for post and list pages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of #16.

Decide where published posts live and what a stored post contains, before any code. Compare D1, R2 and KV against what the blog needs: list by date and tag, fetch by slug, serve images and assets, read from a Worker with low latency, and stay cheap at blog scale.

Decide who renders: the CMS at publish time (store ready-to-serve output) or the Worker at request time (store Markdown and frontmatter). Decide how a published revision is identified (the existing published_hash) and how a rollback works.

Acceptance criteria

  • A short decision record in docs/adr/ with the chosen store, the table or key layout, the rendering decision, and what was rejected and why.
  • The stored shape of a post is written out: slug, frontmatter fields, body (source and rendered if both), hash, published-at, and asset references.
  • It lists exactly what the Worker needs to read and what the CMS needs to write, and the Cloudflare permissions each needs.
  • Estimated read cost for a typical post page and a list page.
Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.