This is a blog site where users can create, read, update, and delete blog posts.
- HTML
- CSS
- Node.js
- Express.js
- EJS
- MongoDB with Mongoose
Nodemon and MongoDB should be preinstalled in the system.
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.
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.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.