Blog Management System
Tech Stack:
● Frontend: React (Next.js, Tailwind CSS)
● Backend: Flask (CRUD for blogs, comments)
● Database: MongoDB (Blog posts and comments)
● Authentication: Appwrite
Features:
✅ User authentication
✅ Create, edit, and delete blog posts
✅ Allow comments on blog posts
✅ View blog posts by category
✅ Publish/draft mode for posts
API Endpoints:
Method Route Description
POST /blogs/create Create a new blog
post
GET /blogs Get all blog posts
PUT /blogs/{id}/edi Edit a blog post
t
DELETE /blogs/{id}/del Delete a blog post
ete
POST /blogs/{id}/com Add a comment
ment
Database Schema (MongoDB)
Blogs Collection
json
{
"_id": "ObjectId",
"user_id": "ObjectId",
"title": "string",
"content": "string",
"category": "string",
"status": "Published/Draft",
"comments": [
{
"commenter": "string",
"comment": "string",
"timestamp": "ISODate"
}
],
"created_at": "ISODate"
}