GitHunt
SA

sakshi2215/blogappPractise

Personal Blogging Platform API is a RESTful backend built with Node.js, Express, and MongoDB that supports full CRUD operations on blog articles, including filtering by tags and sorting by date, with input validation and error handling.

Personal Blogging Platform API

Description

This is a simple RESTful API built to power a personal blogging platform. It supports the basic CRUD operations to manage blog articles — create, read, update, and delete.

The API allows you to:

  • Retrieve a list of articles, with optional filters like publishing date or tags.
  • Get details of a single article by its ID.
  • Create new articles to publish.
  • Update existing articles by ID.
  • Delete articles by ID.

Tech Stack

  • Node.js with Express.js — backend framework
  • MongoDB with Mongoose — database and ORM
  • dotenv — environment variable management
  • nodemon — development server auto-restart
  • Postman — API testing

Main Operations

  • Create a new blog article
  • Read articles:
    • List all articles
    • Retrieve single article by ID
    • Filter by tags (e.g., ?tag=tech)
    • Sort by creation date (ascending or descending)
  • Update existing articles by ID
  • Delete articles by ID

Features

  • Input validation for required fields (title, content)
  • Centralized error handling with clear messages
  • Health check endpoint (GET /) to verify server status
  • Fully functional CRUD operations for blog articles
  • Filtering support for article listing (date, tags)
  • Clean, maintainable API endpoints
  • Structured to be extended with authentication, comments, or more complex features later

Why Build This?

It’s a foundational backend project that teaches:

  • REST API principles
  • CRUD operations
  • Server-side routing
  • Database integration
  • Query filters and parameters

Perfect for anyone starting in backend development or wanting a simple but practical API project.

Languages

JavaScript100.0%

Contributors

Created May 28, 2025
Updated May 28, 2025