Full Stack MERN Blog App with Markdown & AI Post Generator
Build a full-stack Blog application using MongoDB, Express, React, and Node.js. Features AI-powered blog post generation and comment replies via Gemini API, full markdown support with live syntax highlighting, slug-based URLs, tag filtering, real-time search, a post view counter, like/clap button, draft and publish toggle, admin dashboard with analytics, and a comments section — the most feature-complete project in the series.
What You'll Build
What You'll Learn
Video Chapters
Tech Stack
Frequently Asked Questions
What makes this different from the AI Interview Prep App?
This project uses AI in four distinct ways — post generation, idea suggestions, comment reply drafting, and post summarisation — making it a much deeper exploration of Gemini API integration. It also adds a full public-facing blog site alongside the admin dashboard, slug-based routing, markdown rendering, a view counter, and a like/clap system.
How does the AI blog post generator work?
The admin enters a blog post title, which is sent to the Express backend. The backend constructs a prompt instructing Gemini to return a fully formatted markdown blog post, which is then inserted directly into the markdown editor — ready to edit and publish.
How is markdown rendered on the public blog post page?
A dedicated Markdown Renderer component parses the stored markdown string and renders it as HTML with syntax-highlighted code blocks. This is built from scratch in the tutorial at 5:42:25.
How does the draft and publish toggle work?
Each blog post document in MongoDB has a status field (draft or published). The editor UI includes a toggle that updates this field via the Express API. Draft posts appear only in the admin dashboard and are hidden from the public blog.
What prior knowledge do I need for this project?
This is the most advanced project in the series. Completing an intermediate MERN project like the Task Manager or Resume Builder first is strongly recommended. Familiarity with React context, JWT auth, and Express route design will make the first two hours straightforward.
What is included in the source code?
You get the complete React frontend (admin dashboard + public blog site), Express backend, three Mongoose schemas, all AI utility functions, API path config, a .env.example with all required keys, and a README with local setup and deployment instructions.
