BlogApp_nextjs15 Tailwind Templates

Blogapp_nextjs15

This is a modern, full-stack blog application built with Next.js 15, MongoDB, and Tailwind CSS. The app allows users to create, update, and manage blog posts with authentication and authorization features

šŸ“ Next.js 15 Blog App šŸš€

A full-stack blog application built with Next.js 15, MongoDB, and Tailwind CSS. This app allows users to sign up, log in, create, edit, and delete blog posts. Admin users have access to an admin dashboard for managing posts and users.

🌟 Features

āœ… User Authentication – Sign up, log in, and manage sessions using email & password.
āœ… Blog Post Management – Create, update, and delete blog posts.
āœ… Admin Dashboard – Admin users can manage posts and users.
āœ… Protected Routes – Access control for user and admin sections.
āœ… Session Handling – Secure cookies for authentication.
āœ… SEO Friendly – Optimized with metadata and fast performance.
āœ… Fully Responsive – Mobile-friendly UI with Tailwind CSS.

šŸ› ļø Tech Stack

  • Frontend: Next.js 15, React, Tailwind CSS
  • Backend: Next.js API Routes, Node.js, Express
  • Database: MongoDB (Mongoose ORM)
  • Authentication: Session-based with encrypted cookies
  • Deployment: Vercel / DigitalOcean

šŸ“‚ Folder Structure

/src ā”œā”€ā”€ app/ │ ā”œā”€ā”€ dashboard/ # Admin dashboard (protected) │ ā”œā”€ā”€ posts/ # Blog post pages │ ā”œā”€ā”€ auth/ # Login & Register pages │ ā”œā”€ā”€ home/ # Main home page ā”œā”€ā”€ components/ # Reusable UI components ā”œā”€ā”€ lib/ # Utility functions & database connections ā”œā”€ā”€ middleware.js # Middleware for route protection ā”œā”€ā”€ styles/ # Global styles ā”œā”€ā”€ pages/api/ # API routes (Next.js backend)

šŸš€ Getting Started

1ļøāƒ£ Clone the Repository

git clone https://github.com/yourusername/nextjs15-blog-app.git
cd nextjs15-blog-app

npm install
Set Up Environment Variables
Create a .env.local file in the root directory and add:

env
Copy
Edit
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_secret_key
npm run dev

Top categories

Loading Svelte Themes