Skip to content

A modern blog platform built with Next.js, MongoDB, and TailwindCSS.

Notifications You must be signed in to change notification settings

1d0u/nextjs-blog-project

Repository files navigation

Next.js Blog Project

A modern blog platform built with Next.js, MongoDB, and TailwindCSS.

Features

  • 🌓 Dark mode support
  • 📱 Responsive design
  • 🎨 Modern and clean UI with glass morphism effects
  • 🔒 User authentication with NextAuth.js
  • 📝 Rich text editor with TipTap
  • 🏷️ Category system with filtering
  • 🔖 Bookmark system
  • 📊 User dashboard
  • 🖼️ Image upload support
  • 💬 Comment system
  • 🔍 SEO friendly

Tech Stack

  • Next.js 13 (App Router)
  • TypeScript
  • TailwindCSS
  • MongoDB
  • Prisma
  • NextAuth.js
  • TipTap Editor
  • Cloudinary (for image uploads)

Getting Started

  1. Clone the repository
git clone https://github.com/1d0u/nextjs-blog-project.git
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env

Fill in the following environment variables in your .env file:

DATABASE_URL="your_mongodb_url"
NEXTAUTH_SECRET="your_nextauth_secret"
NEXTAUTH_URL="http://localhost:3000"
CLOUDINARY_CLOUD_NAME="your_cloudinary_cloud_name"
CLOUDINARY_API_KEY="your_cloudinary_api_key"
CLOUDINARY_API_SECRET="your_cloudinary_api_secret"
  1. Set up the database
npx prisma generate
npx prisma db push
  1. Seed the database (optional)
npm run seed
  1. Run the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

Features in Detail

Authentication

  • Email/Password authentication
  • Profile management
  • Role-based authorization

Blog Management

  • Create, edit, and delete posts
  • Rich text editor with markdown support
  • Image upload and management
  • Draft/publish system
  • Category management
  • Post bookmarking

User Interface

  • Modern glass morphism design
  • Responsive layout
  • Dark mode support
  • Category filtering
  • User dashboard
  • Profile pages

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A modern blog platform built with Next.js, MongoDB, and TailwindCSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published