heagandev / node-blog-app

Blog web app built with Node, Express, MongoDB and EJS as the view engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-blog-app

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.

Table of Contents

Installation

To install and set up the project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/heaganhenry/node-blog-app.git

  2. Navigate to the project directory: cd node-blog-app

  3. Install the project dependencies:

npm install
  1. Set up the MongoDB database by providing the DB_URI in the .env file:
    DB_URI=your-mongodb-connection-uri

  2. Start the server:

nodemon app.js

Usage

To use the Blog Web App, follow these steps:

  1. Open your browser and visit http://localhost:3000 to access the application.

  2. Browse through the existing blog posts on the home page.

  3. Edit or delete your own blog posts by clicking the blog title then clicking the edit/delete icons.

  4. Create new blog posts by clicking on "New Blog" in the navabr.

About

Blog web app built with Node, Express, MongoDB and EJS as the view engine.


Languages

Language:EJS 44.8%Language:JavaScript 35.5%Language:CSS 19.7%