Skip to content
chhaya03Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

📝 Blogify

A full-stack blogging application built with Node.js, Express, MongoDB, and EJS. Users can sign in, create and view blog posts, and upload images. Authentication is implemented using JSON Web Tokens (JWT) and cookies.


🌐 Features

✅ User Authentication (Sign In)
✅ Create and View Blogs
✅ Upload cover images
✅ Dynamic home page listing all blogs
✅ JWT-based authentication stored in cookies
✅ Role-based access (USER, ADMIN — placeholder for now)


📦 Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB + Mongoose
  • Templating Engine: EJS
  • Authentication: JWT (jsonwebtoken), cookie-parser
  • File Uploads: Multer (configured separately, assumed but not shown here)
  • Styling: Bootstrap (via public folder)

🔧 Project Structure

├── app.js
├── .env
├── routers/
│ ├── user.js
│ └── blog.js
├── middleware/
│ └── authentication.js
├── models/
│ ├── blog.js
│ └── user.js
├── services/
│ └── authentication.js
├── views/
│ ├── home.ejs
│ ├── createBlog.ejs
│ ├── signin.ejs
│ └── partials/
│ ├── head.ejs
│ ├── nav.ejs
│ └── scripts.js
└── public/
└── (static files like images, CSS)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages