A blazing-fast, SEO-optimized blogging platform built with Next.js 16, MongoDB, and Tailwind CSS.
- Framework: Next.js 16 (App Router, TypeScript)
- Database: MongoDB (Mongoose ODM)
- Styling: Tailwind CSS v4 + ShadCN UI
- Markdown: MDX with syntax highlighting, GFM, LaTeX
- SEO: Native Next.js metadata API + JSON-LD structured data
- Auth: JWT-based admin authentication
pnpm installCopy .env.example to .env.local and fill in your values:
cp .env.example .env.localRequired variables:
MONGODB_URI— Your MongoDB connection stringADMIN_USERNAME— Admin panel usernameADMIN_PASSWORD— Admin panel passwordJWT_SECRET— Secret key for JWT tokensNEXT_PUBLIC_SITE_URL— Your production URL
pnpm devOpen http://localhost:3000.
Navigate to http://localhost:3000/admin and log in with your admin credentials.
- ✅ Full CRUD blog management
- ✅ MDX content with syntax highlighting, tables, LaTeX
- ✅ Auto-generated sitemap.xml & robots.txt
- ✅ RSS feed at /feed.xml
- ✅ JSON-LD structured data (BlogPosting, BreadcrumbList)
- ✅ OpenGraph & Twitter card meta tags
- ✅ Dark/light mode
- ✅ Reading progress bar
- ✅ Table of contents (auto-generated)
- ✅ Related posts (tag-based)
- ✅ Social share buttons
- ✅ Search & filter by tags/category
- ✅ Admin panel with markdown editor + live preview
- ✅ ISR (Incremental Static Regeneration)
- ✅ Responsive design
- ✅ Vercel-ready deployment
app/
├── page.tsx # Homepage
├── blog/
│ ├── page.tsx # Blog listing
│ └── [slug]/page.tsx # Blog post
├── admin/
│ ├── layout.tsx # Admin layout + auth
│ ├── page.tsx # Dashboard
│ ├── login/page.tsx # Login
│ └── blogs/ # CRUD pages
├── api/ # REST endpoints
├── sitemap.ts # Dynamic sitemap
├── robots.ts # robots.txt
└── feed.xml/route.ts # RSS feed
components/
├── layout/ # Header, Footer
├── blog/ # Blog components
├── admin/ # Admin components
└── ui/ # ShadCN + custom UI
lib/
├── db.ts # MongoDB connection
├── auth.ts # JWT auth helpers
├── seo.ts # SEO utilities
└── utils.ts # General utilities
models/
└── Blog.ts # Mongoose Blog model
This project is ready for Vercel deployment. Set all environment variables in your Vercel dashboard.
vercel deploy© Studiva™ by CRINE. All rights reserved.