Blogify is a simple blogging platform built with Node.js, Express, and MongoDB. It allows users to create, read and delete blog posts. The application uses EJS as the templating engine for server-side rendering, providing a dynamic and responsive user interface.
Blogify is a simple blogging platform built with Node.js, Express, and MongoDB. It allows users to create, read and delete blog posts. The application uses EJS as the templating engine for server-side rendering, providing a dynamic and responsive user interface.
This is my first web development project using Node.js, Express, MongoDB, and template engines. Through this project, I have learned:
Till now, I have worked primarily on the frontend with HTML, CSS, and JavaScript. When I needed data, I used external APIs to fetch and display the data on the frontend. While working on this project, I learned about template engines, which allow data from the database to be directly embedded into EJS files and sent as updated files to the client's browser. This experience helped me understand the difference between server-side rendering and client-side rendering.
As I am very new to these technologies, I initially wrote the whole code in a single file. Writing the entire code in one file creates confusion and makes future updates tedious. After some research, I learned about the MVC (Model-View-Controller) framework, which structures code by separating routes into a routes folder, handler functions into a controller folder, and schemas/models into a models folder. By adopting the MVC framework, my code became more modular, and I learned how to write structured code, which is very important for peer developers to understand.
Home Page:
Create-blog Page:
Blog-details Page: