
My Blog
My Blog Project By Farman Ali
My Blog, built by Farman Ali, a self-taught MERN stack developer from Bahawalpur, Pakistan, is a full-stack blogging platform. Powered by Node.js, Express.js, MongoDB, and EJS, it showcases my backend development skills with secure authentication, server-side rendering, and clean architecture. Users can create, manage, and engage with postsโperfect for bloggers aiming for a performant, secure experience.
๐ Overview
My Blogis a full-stack blogging platform designed to let users create, manage, and interact with blog posts. Built with a focus on performance, security, and clean code, itโs a testament to my ability to handle backend logic, authentication, and server-side rendering as a MERN stack developer.
While the live demo is coming soon (pending backend hosting, ุฅููู ุดูุงุกู ูฑูููููฐูู), the project is fully functional locallyโready for users to sign up, write posts, and engage with content through likes and comments.
โจ Features
๐ User Authentication
- Signup and login withJWT-based sessions
- Passwords hashed usingbcryptfor security
๐ Post Management
- Create, edit, and delete blog posts
- Rich-text editingpowered by TinyMCE
๐ฌ Engagement Tools
- Users can like and comment on posts
๐ค User Profiles
- View author info and their created posts
๐ Access Control
- Only authenticated users can access create/edit routes
๐ SEO-Friendly URLs
- Permalinks with human-readable slugs for each blog
โ๏ธ Tech Stack
-
Node.js: JavaScript runtime for the backend
-
Express.js: Web framework for routing and APIs
-
MongoDB + Mongoose: NoSQL database with schema modeling
-
EJS: Server-side templating engine for dynamic views
-
JWT + bcrypt: Secure authentication system
๐ Setup & Installation
Clone the repository:git clone https://github.com/farmanali6349/my-blog.git
Navigate into the project:cd my-blog
Install dependencies:npm install
Configure environment variables:cp .env.example .env
โthen add your MongoDB URI, JWT secrets, etc.
Start the server:npm run dev
(uses nodemon for development)
๐ Folder Structure
๐ my-blog
โโโ ๐ src
โ โโโ ๐ controllers # Core business logic
โ โโโ ๐ middlewares # JWT/auth utilities
โ โโโ ๐ models # MongoDB Schemas (User, Blog, etc.)
โ โโโ ๐ routes # Route definitions
โ โโโ ๐ views # EJS templates for UI
โโโ ๐ public # Static files (CSS, JS, Images)
โโโ .env.example # Environment config template
โโโ package.json # Project metadata and dependencies
โโโ README.md # Project documentation
๐ฆ Deployment
Live demo coming soonโpending backend hosting setup.
๐ฌ Contact
- Name:Farman Ali
- Portfolio:farmanali.fun
- GitHub:farmanali6349
- LinkedIn:farmanali6349