This is a simple blog web application built with Node.js, Express.js, EJS, and MongoDB. It allows users to create, read, update, and delete blog posts. The data is stored in a MongoDB database.
- Add New Post: Users can add new blog posts with a title and description.
- View All Posts: The homepage displays all blog posts.
- Edit Post: Users can edit the title and description of a blog post.
- Delete Post: Users can delete a blog post.
-
Clone the repository:
git clone https://github.com/your-username/blog-web-app.git cd blog-web-app
-
Install the dependencies:
npm install
-
Ensure MongoDB is running locally or provide a MongoDB URI if using a cloud service.
-
Start the server
npm start
-
Open your browser and navigate to http://localhost:3000 to see the application.