Skip to content

The Admin Panel allows administrators to manage blog categories and posts. Admins can add, edit, delete, and verify posts. Users can create posts, select categories via a dropdown menu, and edit or delete their posts until they are verified by an admin.

Notifications You must be signed in to change notification settings

Shree-31/PostGuard-Admin-Verified-Blogging-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostGuard: Admin Verified Blogging System

📌 Project Description

The Blog Platform is a full-stack web application for creating, managing, and publishing blog posts. Built using React.js, Node.js, Express.js, and MySQL, this platform allows users to Create, Read, Update, and Delete (CRUD) blog posts with categories and authentication. It also supports user-based post visibility, ensuring that users can manage their own content while admins have verification control.

🚀 Features

Admin Features:

  • Category Management

    • Add new categories
    • Edit existing categories
    • Delete categories
  • Post Management

    • 📖View all posts
    • Edit any post
    • Delete any post
    • Verify user-submitted posts

User Features:

  • ✍ Post Creation
    • Add new posts
    • Select a category from a dropdown menu
  • ✏️Post Modification
    • Edit their own posts before verification
    • Delete their own posts before verification

Additional Features:

🔒 User Authentication – Secure login/logout system.

✅ Admin Verification – Admins verify posts, making them non-editable.

🏷️ Category Management – Organize posts into categories.

📖 Post Management - Users can view Verified and Uploaded Post in Viewers Page with Category Filter Option.

How It Works

  1. Admin Login: Admin logs into the panel to manage categories and posts.
  2. Category Management: Admin can create, update, and remove categories.
  3. User Post Submission: Users submit posts and select categories.
  4. Post Editing/Deletion (User): Users can modify or delete their posts before admin verification.
  5. Post Verification: Admin verifies posts, making them uneditable by users.

API Endpoints

Categories

  • GET /api/categories - Fetch all categories
  • POST /api/categories - Add a new category
  • PUT /api/categories/:id - Update a category
  • DELETE /api/categories/:id - Remove a category

Posts

  • GET /api/posts - Fetch all posts
  • GET /api/posts?categoryId={id} - Fetch posts by category
  • POST /api/posts - Add a new post
  • PUT /api/posts/:id - Update a post (if not verified)
  • DELETE /api/posts/:id - Delete a post (if not verified)
  • PATCH /api/posts/:id/verify - Admin verifies a post

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/Shree-31/PostGuard-Admin-Verified-Blogging-System cd PostGuard-Admin-Verified-Blogging-System

  2. Install dependencies:

    npm install

  3. Start the backend server:

    nodemon server.js

  4. Start the React frontend:

    npm start

Technologies Used

  • Frontend: React, Axios
  • Backend: Node.js, Express
  • Database: MySQL

Note

  • Admin pposts will be automatically verified once admin add the post.
  • Only the admin can verify posts.
  • Verified posts cannot be edited or deleted by users.
  • Users can only see their own posts.

📸 Screenshots

Login Page

Login

Add Category

Add Category

Add Post

Add Post

Edit Post

Edit Post

Deleted Post

Deleted Post

Pending Posts

Pending Posts

Verified Posts

Verified Posts

Viewers Page

Viewers Page

📞 Contact For any queries, feel free to reach out:

📧 Email: jaishree3123@gmail.com

🔗 GitHub:Shree-31

About

The Admin Panel allows administrators to manage blog categories and posts. Admins can add, edit, delete, and verify posts. Users can create posts, select categories via a dropdown menu, and edit or delete their posts until they are verified by an admin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published