Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.05 KB

Blog Web Application

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.

Features

  • 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.

Prerequisites

  • Node.js (v14.x or later)
  • MongoDB (running locally or on a cloud service like MongoDB Atlas)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/blog-web-app.git
    cd blog-web-app
    
  2. Install the dependencies:

       npm install
    
  3. Ensure MongoDB is running locally or provide a MongoDB URI if using a cloud service.

  4. Start the server

       npm start
    
  5. Open your browser and navigate to http://localhost:3000 to see the application.