This project is a blog site built using the MEN stack (MongoDB, Express.js, and Node.js) with EJS as the templating engine. The site is styled using Bootstrap and includes features such as user authentication, post creation, and more.
- Clone the repository:
git clone https://github.com/Leac1m/blog_site_using_men_stack.git
- Navigate to the project directory:
cd blog_site_using_men_stack - Install the dependencies:
npm install
- Start the development server:
npm start
- Open your browser and go to
http://localhost:3000to view the site.
- User authentication with session management.
- Create, read, update, and delete blog posts.
- Responsive design using Bootstrap.
- Contact form integrated with SB Forms.
The following scripts are available in the package.json:
"scripts": {
"start": "nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},start: Starts the server usingnodemonfor automatic restarts on file changes.
The project uses the following dependencies:
- bcrypt: For hashing passwords.
- body-parser: To parse incoming request bodies.
- connect-flash: For flash messages.
- ejs: Templating engine.
- express: Web framework for Node.js.
- express-fileupload: Middleware for handling file uploads.
- express-session: Session middleware.
- mongoose: MongoDB object modeling tool.
- mongoose-unique-validator: Plugin for Mongoose to validate unique fields.
The project uses the following dev dependencies:
- nodemon: For automatically restarting the server during development.
Feel free to contribute to this project by submitting issues or pull requests. If you have any questions, please contact the author.