Skip to content

Testing the Blog & AI Platform

Now that the core features are implemented, here is how you can verify them end-to-end.

1. Public Blog

  • Visit: http://localhost:3000/blog
  • Verify:
  • You should see the seed posts ("Welcome to Singular Dream", "The Future of Autonomous Governance").
  • Filter logic should work (though requires minimal UI implementation currently to toggle filters, the API supports it).
  • Visit: Click on any post title.
  • Verify:
  • Full article content renders in Markdown.
  • Video embeds (if present) appear.
  • Audio players (if present) appear.

2. Blog Builder (Admin)

  • Visit: http://localhost:3000/admin/blog/builder
  • Login: Use the Dev Bypass (if running locally in dev mode) or real auth.
  • AI Generation:
  • Enter a Topic: "The importance of community voting"
  • Click "âš¡ Generate Draft"
  • Verify content appears in the editor.
  • AI Tools:
  • Click "✨ Enhance" to polish the text.
  • Click "📋 Summarize" to see the summary field update.
  • Media:
  • Upload an audio file (mp3) to test signed URL uploads.
  • Paste a YouTube link into the Video URL field.
  • Save:
  • Click "Save Post".
  • Verify you are redirected to the new post page.

3. Database & Indexing

  • If you see FAILED_PRECONDITION errors in the console/network tab, you likely need to create the Firestore Index.
  • Check the terminal output for the direct link to create it.