This is a web application built with Node, Express, MongoDB, and EJS as the view engine. It allows users to create, read, update, and delete blog posts.
To install and set up the project locally, follow these steps:
-
Clone the repository: git clone https://github.com/heaganhenry/node-blog-app.git
-
Navigate to the project directory: cd node-blog-app
-
Install the project dependencies:
npm install
-
Set up the MongoDB database by providing the
DB_URI
in the.env
file:
DB_URI=your-mongodb-connection-uri -
Start the server:
nodemon app.js
To use the Blog Web App, follow these steps:
-
Open your browser and visit
http://localhost:3000
to access the application. -
Browse through the existing blog posts on the home page.
-
Edit or delete your own blog posts by clicking the blog title then clicking the edit/delete icons.
-
Create new blog posts by clicking on "New Blog" in the navabr.