Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SurajKD/ExpressBlog

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressBlog

ExpressBlog is a simple blog website built using Express.js and Handlebars as the templating engine. This project demonstrates server-side rendering, dynamic routing, and static file serving using Express and Netlify Functions.

Features

  • Homepage – Displays a welcome message.
  • Blog Listing – Lists all blog posts with titles, descriptions, and thumbnails.
  • Blog Details – Displays the full content of a blog post.
  • Dynamic Routing – Uses dynamic routes for individual blog posts.
  • Handlebars Templating – Uses Handlebars for server-side rendering.
  • Bootstrap Integration – Styled with Bootstrap for a responsive design.
  • Netlify Functions – Serverless deployment with Netlify.

Project Structure

ExpressBlog/
├── functions/            # Server-side logic for Netlify Functions
│   ├── server.js        # Main server file
│   ├── routes/          
│   │   └── blog.js      # Blog routes
│   ├── views/           # Handlebars views
│   │   ├── home.handlebars      # Homepage view
│   │   ├── blogHome.handlebars  # Blog listing view
│   │   ├── blogPage.handlebars  # Blog details view
│   │   └── layouts/
│   │       └── main.handlebars  # Main layout
│   ├── static/          # Static files (CSS, JS, images)
├── package.json         # Project dependencies and scripts
├── netlify.toml         # Netlify configuration
├── .gitignore           # Ignored files for Git
└── README.md            # Project documentation

Installation & Running Locally

1️⃣ Clone the repository

git clone https://github.com/yourusername/ExpressBlog.git
cd ExpressBlog

2️⃣ Install dependencies

npm install

3️⃣ Run locally using Netlify Dev

netlify dev

Then visit http://localhost:8888/ to view your blog.

Deployment on Netlify

  1. Push your code to GitHub.
  2. Connect the repository to Netlify.
  3. Deploy with default settings.

License

This project is licensed under the MIT License.


🚀 Happy coding! If you have any issues, feel free to open an issue or contribute to the project.

About

Express.js blog website using handlebars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.