https://github.com/abhisheksehjal/blog_app_frontend-backend
A full-featured blog website built using Node.js, Express, MongoDB, and EJS templating. Users can create, edit, delete, and view blog posts with dynamic rendering and MongoDB integration.
https://github.com/abhisheksehjal/blog_app_frontend-backend
backend blogwebsite cloudinary ejs-templates express frontend fullstack mongodb noedjs
Last synced: 28 days ago
JSON representation
A full-featured blog website built using Node.js, Express, MongoDB, and EJS templating. Users can create, edit, delete, and view blog posts with dynamic rendering and MongoDB integration.
- Host: GitHub
- URL: https://github.com/abhisheksehjal/blog_app_frontend-backend
- Owner: AbhiShekSehjal
- Created: 2025-05-10T16:28:54.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-05-12T06:43:06.000Z (29 days ago)
- Last Synced: 2025-05-12T21:08:52.418Z (28 days ago)
- Topics: backend, blogwebsite, cloudinary, ejs-templates, express, frontend, fullstack, mongodb, noedjs
- Language: EJS
- Homepage: https://art-blog-s1lg.onrender.com
- Size: 10.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the Fullstack blog website built using **Node.js**, **Express**, **MongoDB**, **EJS** and **Passport.js** for authentication. It includes support for cloud storage using **Cloudinary** and handles file uploads using **Multer**.
---
## 🚀 Features
- User authentication with Passport and MongoDB
- File uploads to Cloudinary
- Session management with `express-session` and `connect-mongo`
- EJS-based views support
- Flash messages for alerts---
## 🛠️ Tech Stack
- **Node.js** (v23.5.0)
- **Express.js**
- **MongoDB** + **Mongoose**
- **Cloudinary** for media uploads
- **Passport.js** for authentication
- **EJS** for templating
- **Multer** for handling form data
- **dotenv** for environment config---
## 📁 Project Structure
- `app.js` – Main Express app
- `cloudConfig.js` – Cloudinary setup
- `routes/` – Contains route files like `auth.js`
- `models/` – Mongoose schemas
- `views/` – EJS templates
- `public/` – Static files (CSS, images)---
## 🔧 Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/your-repo-name.git
cd Backend
```2.Install dependencies:
```bash
npm install
```3.Create a .env file in the root with:
```bash
DB_URL=your_mongodb_connection_string
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
SECRET=your_session_secret
```4.Start the development server:
```bash
node app.js
```