A full-featured blog application built with Node.js, Express, and MongoDB.
- User authentication and authorization
- Create, read, update, and delete blog posts
- Comment system
- Responsive design
- Flash messages for user feedback
- Node.js (v12 or higher)
- MongoDB (local or Atlas)
- Clone the repository:
git clone <repository-url>
cd blog_app- Install dependencies:
npm install- Create a
.envfile in the root directory and add the following variables:
MONGODB_URI=your_mongodb_connection_string
SESSION_SECRET=your_session_secret
PORT=3000
- Start the development server:
npm run devThe application will be available at http://localhost:3000
npm start: Start the production servernpm run dev: Start the development server with nodemon
- Node.js
- Express.js
- MongoDB with Mongoose
- EJS templating
- Passport.js for authentication
- Bootstrap for styling
ISC