A full stack blog application built with Node.js, Express, MongoDB and Passport.js authentication.
🔗 Live Website https://your-live-link.com
✔ User Registration ✔ Secure Login Authentication ✔ Passport.js Local Strategy ✔ Create Blog Posts ✔ Edit Blog Posts ✔ Delete Blog Posts ✔ Session Based Authentication ✔ Protected Routes ✔ User Profile Management
HTML5 CSS3 Bootstrap EJS
Node.js Express.js
MongoDB Mongoose
Passport.js Express Session
PR--BLOG-PROJECT-passport
│
├── config
│ ├── db.js
│ └── dotenv.js
│
├── controllers
│
├── middleware
│ └── passport.js
│
├── models
│ ├── user.model.js
│ └── blog.model.js
│
├── routes
│ └── index.js
│
├── views
│ ├── pages
│ └── partials
│
├── public
│ ├── css
│ └── images
│
├── app.js
└── package.json
git clone https://github.com/Dev-Mjarir08/PR--BLOG-PROJECT-passport.gitcd PR--BLOG-PROJECT-passportnpm installCreate .env file in root directory.
PORT=3000
MONGODB_URL=your_mongodb_connection_string
SESSION_SECRET=your_secret_key
npm startor
nodemon app.jsThis project uses Passport.js Local Strategy for authentication.
Authentication includes:
- Secure password hashing
- Login session
- Protected routes
- Authentication middleware
You can deploy this project on:
Render Railway Vercel DigitalOcean
Contributions are welcome.
Steps to contribute:
- Fork the repository
- Create new branch
git checkout -b feature-name
- Commit changes
git commit -m "Added new feature"
- Push branch
git push origin feature-name
- Create Pull Request
Jarir Multani
GitHub https://github.com/Dev-Mjarir08
This project is licensed under the MIT License
If you like this project:
⭐ Star the repository 🍴 Fork the project 💡 Share with others