Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ MERN Blogging Platform

A full-stack blogging platform built using the MERN (MongoDB, Express.js, React, Node.js) stack. Users can create, edit, delete, like, and comment on blog posts with an intuitive UI and a rich text editor.

πŸš€ Tech Stack

Frontend:

  • ⚑ Vite – Fast build tool for modern React apps
  • βš› React.js – Component-based UI development
  • 🌍 React Router – Client-side routing
  • 🎨 Tailwind CSS / Custom CSS – Styling

Backend:

  • πŸ›  Node.js – JavaScript runtime for the server
  • πŸš€ Express.js – Lightweight web framework
  • πŸ—„ MongoDB & Mongoose – NoSQL database for scalable data storage

Database Models (Schemas)

Blog Schema

  • content - String
  • author - mongoose.Schema.Types.ObjectId
  • likes - mongoose.Schema.Types.ObjectId
  • comments - [user- mongoose.Schema.Types.ObjectId, test - String, createdAt - Date]
  • shares - mongoose.Schema.Types.ObjectId
  • createdAt - Date

User Schema -

  • username - String
  • email - String
  • passward - String
  • createdAt - Date

🌍 API Routes:

  • πŸ”Ή Create User - POST /createuser
  • πŸ”Ή Get All Users - GET /users
  • πŸ”Ή Get User by Username - GET /users/byUsername/:username
  • πŸ”Ή Create Blog Post - POST /addblog
  • πŸ”Ή Get All Blog Posts - GET /blogs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages