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

Abierto
#22 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
markdown, sqlite

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
HTML
Estrellas
0
Forks
0
Merge medio
1 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mrgnw/cfcms

Todos los issues de mrgnw/cfcms

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.