Skip to content

Blog application using Node.js, Express.js, EJS templating, and MongoDB. Features include creating, editing and deleting posts with user authentication.

Notifications You must be signed in to change notification settings

irfad-c/node-express-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Blog Project

A simple blog application built with Node.js, Express, MongoDB, and EJS.
This project allows users to create, read, update, and delete blog posts with an admin dashboard and user authentication.

✨ Features

  • 📝 Create new blog posts
  • ✏️ Edit and delete existing posts
  • 🏠 View all posts on the home page
  • 🔍 Search functionality
  • 🎨 Responsive UI with EJS templates
  • 🗄️ MongoDB database integration
  • 👥 Separate pages for Admin and User
  • 📊 Admin dashboard
  • 🔑 User authentication with JWT & Auth Middleware
  • 🍪 Cookies & session handling
  • 🔒 Password hashing for security

🛠️ Tech Stack

  • Backend: Node.js, Express.js
  • Frontend: EJS, CSS
  • Database: MongoDB (Atlas)
  • Other Tools: dotenv, nodemon

⚙️ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/irfad-c/node-express-blog.git

cd node-express-blog

2️⃣ Install dependencies

npm install

3️⃣ Environment variables

Create a .env file in the root folder and add:

MONGODB_URI=your_mongodb_connection_string

JWT_SECRET=your_secret_key

PORT=5000

4️⃣ Run the app (development mode)

npm run dev

5️⃣ Open in browser

👉 http://localhost:5000

📸 Screenshots

Screenshot 2025-09-03 075301

About

Blog application using Node.js, Express.js, EJS templating, and MongoDB. Features include creating, editing and deleting posts with user authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published