akshitasemwal / BlogSite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlogSite

This is a blog site where users can create, read, update, and delete blog posts.

Technologies Used

  • HTML
  • CSS
  • Node.js
  • Express.js
  • EJS
  • MongoDB with Mongoose

Prerequisites

Nodemon and MongoDB should be preinstalled in the system.

Installation

Clone the repository:git clone https://github.com/akshitasemwal/blogsite.git

Install the dependencies:
cd blogsite
npm install

Start the server:nodemon app.js

Open a web browser and go to http://localhost:3000 to view the blog site.

Usage

Creating a Post
Click the "Compose" button on the home page.
Fill in the content and click the "Publish" button.
You will be redirected to the posts section.

Reading a Post
Click a post title on the home page or the "Read More" button on a post preview.
You will be redirected to the post.

Updating a Post
Click the "Edit" button on a post.
Fill in the content and click the "Update" button.
You will be redirected to the updated posts section.

Deleting a Post
Click the "Delete" button on a post.
You will be redirected to the home page.

Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About


Languages

Language:EJS 48.0%Language:CSS 27.8%Language:JavaScript 24.2%