About This Blog

Welcome to our professional blog platform - a modern, clean, and SEO-optimized space for sharing insights, articles, and thoughts on technology, development, and innovation.

Features

  • ✨ Modern, minimalist design with a focus on readability
  • 🚀 Built with Next.js 14+ for optimal performance and SEO
  • 📝 Full markdown support with syntax highlighting
  • 🔍 SEO-optimized with dynamic meta tags, JSON-LD, and sitemap
  • 📱 Fully responsive and mobile-friendly
  • 🎨 Clean, professional UI with Tailwind CSS
  • 💾 SQLite database for reliable post storage
  • 🔐 Secure API endpoint for programmatic posting

API Documentation

This blog includes a powerful API for programmatically creating blog posts. Here's how to use it:

Creating a New Post

curl -X POST http://localhost:3000/api/posts \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "title": "My First Blog Post",
    "content": "# Hello World\n\nThis is my first post!",
    "excerpt": "A brief introduction to my first post",
    "author": "John Doe",
    "tags": ["tutorial", "getting-started"],
    "slug": "my-first-post",
    "coverImage": "https://example.com/image.jpg"
  }'

Required Fields

  • title - The post title
  • content - Markdown content for the post
  • excerpt - Brief summary of the post
  • author - Author name
  • tags - Array of tags

Optional Fields

  • slug - Custom URL slug (auto-generated from title if not provided)
  • coverImage - URL to cover image

Setup Instructions

  1. 1. Clone the repository
  2. 2. Copy .env.example to .env
  3. 3. Set your API_KEY in the .env file
  4. 4. Install dependencies: npm install
  5. 5. Run the development server: npm run dev
  6. 6. Start creating posts via the API!

Technology Stack

  • Framework: Next.js 14+ with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS
  • Database: SQLite with better-sqlite3
  • Markdown: react-markdown with syntax highlighting

Contact

For questions, suggestions, or feedback, please reach out through our social media channels or submit an issue on GitHub.