Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shoaib-fateh/blog-website-with-nodejs

This is a simple blog website built with Node.js.
https://github.com/shoaib-fateh/blog-website-with-nodejs

ejs express mongodb nodejs

Last synced: about 1 month ago
JSON representation

This is a simple blog website built with Node.js.

Awesome Lists containing this project

README

        

# Blog Website with Node.js

This is a simple blog website built with Node.js.

## Navigation

The website has the following navigation links:

- Home: Displays the list of blog posts.
- About: Provides information about the website.
- Contact: Displays contact information.
- Compose: Allows users to compose new blog posts.

## Features

- Displaying a list of blog posts on the home page.
- Viewing individual blog posts.
- Composing new blog posts.
- About and contact pages.

## How to Use

1. Clone the repository: `git clone https://github.com/shoaib-fateh/blog-website-with-nodejs.git`
2. Install dependencies: `npm install`
3. Start the server: `npm start`
4. Open your browser and visit `http://localhost:3000`

## Folder Structure

The project has the following folder structure:

- `public`: This folder contains static files such as CSS stylesheets, images, and client-side JavaScript files.
- `views`: This folder contains the EJS templates for rendering the different pages of the website.

## Dependencies

The project uses the following dependencies:

- `body-parser`: For parsing request bodies.
- `ejs`: For rendering EJS templates.
- `express`: For building the web application.
- `mongodb`: For connecting to MongoDB database.
- `mysql`: For connecting to MySQL database.
- `superheroes`: For generating random superhero names.
- `supervillains`: For generating random supervillain names.

## Usage

To use the blog website, follow the steps mentioned in the "How to Use" section above.

## Future Enhancements

Some possible future enhancements for the blog website could include:

- User authentication and authorization.
- Adding comments to blog posts.
- Pagination for the list of blog posts.
- Search functionality.