Skip to content

This project allows you to create, view, edit, and delete blog posts. It serves as a basic template for a blog website with a backend written in Node.js and a frontend powered by EJS templates.

Notifications You must be signed in to change notification settings

amrmabdelazeem/blog-nodejs-ejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog CRUD with Node.js & EJS

Welcome to the Blog Node.js with EJS project! This is a simple blogging application built using Node.js and EJS (Embedded JavaScript templates). This project allows you to create, view, edit, and delete blog posts. It serves as a basic template for a blog website with a backend written in Node.js and a frontend powered by EJS templates.

Getting Started

To get started with the project, follow these steps:

Prerequisites

  • Make sure you have Node.js installed on your machine. If not, you can download it from nodejs.org.

Installation

1.Clone the repository:

git clone https://github.com/amrmabdelazeem/blog-nodejs-ejs.git
  1. Change into the project directory:
cd blog-nodejs-ejs
  1. Install the dependencies:
npm install

Usage

  1. Start the application:
node index.js
  1. Open your web browser and navigate to http://localhost:3000 to access the blog application.

Features

  • Create a new post: Add new blog posts with a title and content.
  • View posts: Browse through the existing blog posts on the home page.
  • Edit posts: Click on the "Edit" button to modify the content of a blog post.
  • Delete posts: Remove unwanted posts by clicking on the "Delete" button.

Project Structure

  • index.js: The main entry point of the application.
  • views/: Contains the EJS templates for rendering the HTML pages.
  • public/: Includes static assets such as stylesheets and images.
  • routes/: Defines the routes and controllers for handling different actions.
  • partials/: For EJS header and footer templates.

Dependancies

  • Express: A minimal and flexible Node.js web application framework.
  • EJS: Embedded JavaScript templates for rendering dynamic content.
  • Body-parser: Middleware for parsing incoming request bodies.

Acknowledgments

Special thanks to the original author, amrmabdelazeem , for creating this project.

Happy blogging! 🚀

About

This project allows you to create, view, edit, and delete blog posts. It serves as a basic template for a blog website with a backend written in Node.js and a frontend powered by EJS templates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published